Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

withAdditionalParams() causa PHPStan e Intelephense a não encontrarem métodos que sejam chamados em sequência #15

Open
viniciushsantana opened this issue Jun 14, 2022 · 0 comments

Comments

@viniciushsantana
Copy link

viniciushsantana commented Jun 14, 2022

Em situações como:

$cob = Pix::cob()
      ->create($txid, $array)->json();

Causam problemas se forem como:

$cob = Pix::cob()
      ->withAdditionalParams(['key' => 'value'])
      ->create($txid, $array)->json();

Screen Shot 2022-06-14 at 14 20 20

No Larastan (nível 2+):

Call to an undefined method Junges\Pix\Api\Api::create().  

Nesse caso, fiquei em dúvida se algum PHPDoc está errado ou ausente para que não haja essas inconsistências.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant