Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing inconsistency #57

Open
flohw opened this issue Oct 10, 2024 · 1 comment
Open

Typing inconsistency #57

flohw opened this issue Oct 10, 2024 · 1 comment

Comments

@flohw
Copy link

flohw commented Oct 10, 2024

Hi,

I use PHPStan within my project and use your library.
PHPStan reports some errors on ElementAbstract when we use it's derivations such as ElementSignature.

Mainly when chaining methods.

See here: https://phpstan.org/r/42328237-5731-43f3-bff4-ca2408a50694

When removing the @return tag or replacing by @return $this, there will be no error.

Would you mind if I provide a PR with this kind of improvements?

Thanks

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

No branches or pull requests

2 participants
@flohw and others