[ReturnTypeExtension] add test case for narrow typed json_decode#993
[ReturnTypeExtension] add test case for narrow typed json_decode#993ondrejmirtes merged 21 commits intophpstan:1.6.xfrom
Conversation
96ca0b7 to
f682afa
Compare
tests/PHPStan/Analyser/data/json-decode/narrow_type_with_force_array.php
Outdated
Show resolved
Hide resolved
tests/PHPStan/Analyser/data/json-decode/narrow_type_with_force_array.php
Outdated
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. |
ondrejmirtes
left a comment
There was a problem hiding this comment.
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 <martin@herndl.org>
Co-authored-by: Martin Herndl <martin@herndl.org>
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"