phpstan-src
phpstan-src copied to clipboard
PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository.
closes https://github.com/phpstan/phpstan/issues/9384
Attempting to fix https://github.com/phpstan/phpstan/issues/9248 Should this be bleeding-edge only error for now?
closes https://github.com/phpstan/phpstan/issues/4570 see initial discussion and reviews in https://github.com/phpstan/phpstan-src/pull/2046 test fails without the src changes like ```diff 1) PHPStan\Rules\Comparison\ImpossibleCheckTypeFunctionCallRuleTest::testBug4570 Failed asserting that two strings are identical. --- Expected +++ Actual...
Pre-existing tests have different expectations regarding the "is always true/false" results, then what was discussed in the linked issue. I wonder when/how we should/can differentiate whether we expect this "is...
Monday I asked in the #static-analysis Slack channel of the Symfony Devs workspace if PHPStan is able to detect not-existing classes in the return type of `@method` annotations. I provided...
This PR starts to add support for PHPStorm’s metadata files. It only supports a few basic directives for resolving method/function return types, but of course support for other directives can...
closes https://github.com/phpstan/phpstan/issues/8781
Alternative version of #2122 This simpler version without aby BC break would be enough for our use case.
@ondrejmirtes We discussed this on our friday call. I prepared PR that would make NodeScopeResolver usable for our use case of collecting latte templates context. 1) `analysedFiles` are not global...
This specifies the type of the replacements array to prevent accidental mistakes with the format of the array. Refs: * https://phpstan.org/r/43f08118-c4d2-46aa-b05e-3a5c1c9bc4e3 * https://3v4l.org/XXcWD