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.
I tried solving the shapes with Hoa Regex AST, but I couldn't find the information about capturing groups on the ast nodes. therefore I tried the way suggested in https://github.com/phpstan/phpstan/issues/9502#issue-1771934831
This is a solution I was talking about [previously](https://github.com/phpstan/phpstan-src/pull/2075#issuecomment-1410638235). The failing test discovered exactly the kind of class-string magic I was afraid people might be doing. I don't know how...
Reference in psalm: https://psalm.dev/r/3786d05a6c
closes https://github.com/phpstan/phpstan/issues/8224
Closes https://github.com/phpstan/phpstan/issues/3300
This was inspired by https://github.com/phpstan/phpstan/issues/8458#issuecomment-1336402081 Closes https://github.com/phpstan/phpstan/issues/7049 Closes https://github.com/phpstan/phpstan/issues/7279 Closes https://github.com/phpstan/phpstan/issues/7423 Closes https://github.com/phpstan/phpstan/issues/8268 #### Regarding the performance impact (https://github.com/phpstan/phpstan-src/pull/2058#issuecomment-1340500218) before: ``` Benchmark 1: make phpstan Time (mean ± σ): 56.978...
https://www.php.net/manual/en/domdocument.loadxml.php#refsect1-domdocument.loadxml-returnvalues
refs https://github.com/phpstan/phpstan-src/pull/2479#issuecomment-1613755928 closes https://github.com/phpstan/phpstan/issues/5942