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.
Some perf improvements (mostly related to constant arrays) implemented while investigating phpstan/phpstan#8146.
`iterator_to_array` was changed to accept `iterable`.
requires https://github.com/phpstan/phpdoc-parser/pull/150 refs https://github.com/phpstan/phpstan/issues/6426#issuecomment-1073791565 see https://psalm.dev/docs/annotating_code/supported_annotations/#param-out-psalm-param-out just put togehter the basic building blocks and tests: - [x] wire ResolvedPhpDocBlock - [x] wire ResolvedDocNodeResolver - [x] validate param-out phpdoc tags and...
https://www.php.net/manual/en/function.get-class.php `get_class` can return false prior to php8.0
One solution
tmp pr. just want to know the results of the integration tests.
Closes https://github.com/phpstan/phpstan/issues/8087
Closes https://github.com/phpstan/phpstan/issues/8153 See https://github.com/phpstan/phpstan/issues/8153#issuecomment-1275992641 and the next comment for how I came to this. I'm still not a 100% sure though if this really belongs here. It does make sense...
Return type of `array_search()` may be false unless we are sure that `$haystack` includes a value identical to `$needle`. Closes phpstan/phpstan#3789
closes https://github.com/phpstan/phpstan-src/pull/1535 closes https://github.com/phpstan/phpstan-src/pull/1627 and a lot of native type related issues! Native types should always be specified along phpdoc types. Also, there should be only a single `treatPhpDocTypesAsCertain` handling...
Closes https://github.com/phpstan/phpstan/issues/8088 The dynamic extensions was considering ``` array ``` and ``` array{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} ``` as the same