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

Improve the PHPStan extension #14

Merged
merged 6 commits into from
Jul 5, 2022
Merged

Improve the PHPStan extension #14

merged 6 commits into from
Jul 5, 2022

Conversation

jrmajor
Copy link
Contributor

@jrmajor jrmajor commented Jul 5, 2022

See commit messages for a detailed description.

jrmajor added 6 commits July 5, 2022 10:04
`dumpType(invade(new Foo))` printed `Foo`, which was confusing and not what Invader docblock would suggest.

After this change, it will print `Invader<Foo>`.
Before, PHPStan extension would work only when an `Invader` object was returned by the `invade()` function.

With this change, it will still work if you return `Invader<Foo>` from other method or call `new Invader()`.
@freekmurze freekmurze merged commit d0a9c89 into spatie:main Jul 5, 2022
@freekmurze
Copy link
Member

Thanks!

@jrmajor jrmajor deleted the phpstan-mixed branch July 5, 2022 12:23
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

Successfully merging this pull request may close these issues.

2 participants