Markus Staab
Markus Staab
looking at perf profiles of the slow test https://github.com/phpstan/phpstan-src/commit/d33454d17333bc953d7399e8f6851f237a0bb37d we can see TrinaryLogic creation is a major cost. with this PR I propose to "duplicate" a few lines of code...
https://wiki.php.net/rfc/true-type fixes https://phpstan.org/r/ae4ac09d-f2b0-46c0-ac4b-f8fdbd2a8c96 Prerequisites - [x] requires https://github.com/Roave/BetterReflection/pull/1152 - [x] nikic/php-parser support - [x] phpdoc-parser support
closes https://github.com/phpstan/phpstan/issues/7379 closes https://github.com/phpstan/phpstan/issues/7601 With this patch we see analysis time dropped to ~5 seconds from previous 2-3 minutes in mono-repo projects, which contain several phpstan.neon files.
closes https://github.com/phpstan/phpstan/issues/6788
see https://3v4l.org/ZruC7
rebased version of https://github.com/phpstan/phpstan-src/pull/1445 reworked to use `isSuperTypeOf` checks ([feedback](https://github.com/phpstan/phpstan-src/pull/1445#discussion_r901765586) from ondrey). #1445 seemed abandoned therefore I figured I could push it over the finishing line Fixes https://github.com/phpstan/phpstan/issues/7492
closes https://github.com/phpstan/phpstan/issues/7735
with https://github.com/phpstan/phpstan-src/pull/1383/files#r887647098 I was running into this bug. the problem is, that phpstan should dump the type `string` but reports `bool|float|int|string` for the `dumpType` call seen here: ``` $ php...
closes https://github.com/phpstan/phpstan/issues/5552
closes https://github.com/phpstan/phpstan/issues/7372