-
Notifications
You must be signed in to change notification settings - Fork 506
[ReturnTypeExtension] add test case for narrow typed json_decode #993
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
[ReturnTypeExtension] add test case for narrow typed json_decode #993
Conversation
96ca0b7
to
f682afa
Compare
tests/PHPStan/Analyser/data/json-decode/narrow_type_with_force_array.php
Show resolved
Hide resolved
tests/PHPStan/Analyser/data/json-decode/narrow_type_with_force_array.php
Show resolved
Hide resolved
5547fb8
to
55cc2d4
Compare
I'm working on the static errors... |
ddd20b4
to
95d480b
Compare
Feel free to open a new PR if you ever decide to work on this again 👍 Thanks. |
It is not - there were conflicts and build failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and please fix the conflict by cleanly rebasing the branch on top of 1.5.x. I'll review it once the build is green. Thanks.
I'm on it 👍 |
2e46788
to
aafd2a3
Compare
I've rebased. Tests, PHPStan and coding standards are passing localy. Seems GitHub Actions are crashing now because cache is stuck: https://github.com/phpstan/phpstan-src/runs/5677735280?check_suite_focus=true I'll check it today/tomorrow |
1cac3b6
to
834eff1
Compare
834eff1
to
2aa201a
Compare
CI is passing 👍 |
b8357ff
to
961f9c2
Compare
…e from contssant string value
Co-authored-by: Martin Herndl <[email protected]>
Co-authored-by: Martin Herndl <[email protected]>
961f9c2
to
7d306fb
Compare
Thank you! |
👍 @herndlm Thank you for finishing 👏 |
Nice, thank you too. I was waiting for this getting merged, have a tiny follow-up idea :) |
Port of https://github.com/phpstan/phpstan-nette/pull/89/files for
json_decode()
Any feedback appreciated 👍
How to test?
vendor/bin/phpunit tests/PHPStan/Analyser/NodeScopeResolverTest.php --filter "json"