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/9907 Closes https://github.com/phpstan/phpstan/issues/8774
Update PhpStorm stubs
This implements the feature request here: https://github.com/phpstan/phpstan/issues/7486. I think this does the job. Hope this will help.
When `array_slice()` `offset` or `limit` parameters aren't constants we cannot dynamically override return type, so for those cases return type should stay `array`. This PR fixes this and as well...
discussion https://github.com/phpstan/phpstan-src/pull/2358#discussion_r1174422409 `PHP_FLOAT_EPSILON` is small but still much larger than "small floating point values" - https://3v4l.org/570q1 `abs($this->value - $type->value) < PHP_FLOAT_EPSILON` condition for small numbers always wrongly returned true, `===`...
Fix for: https://github.com/phpstan/phpstan/issues/9864 First PR for me here, probably will be doing stuff wrong 😅