laravel-pix
laravel-pix copied to clipboard
`withAdditionalParams()` causa PHPStan e Intelephense a não encontrarem métodos que sejam chamados em sequência
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();

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.