laravel-pix icon indicating copy to clipboard operation
laravel-pix copied to clipboard

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

Open viniciushsantana opened this issue 2 years ago • 0 comments

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.

viniciushsantana avatar Jun 14 '22 17:06 viniciushsantana