Skip to content
This repository was 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

@viniciushsantana

Description

@viniciushsantana

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions