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.
Update PhpStorm stubs
closes https://github.com/phpstan/phpstan/issues/10572
I dunno if it closes https://github.com/phpstan/phpstan/issues/10057 because of the php-8 issue, cf https://github.com/phpstan/phpstan/issues/10057#issuecomment-2002551335
idea is to catch errors like https://github.com/Roave/BetterReflection/pull/1406#discussion_r1523065225 in which bogus conditions like `if (PHP_VERSION_ID >= 80100) {}` have been used in tests. it's a bug in the linked case, because...
test in https://github.com/phpstan/phpstan/pull/10661 closes https://github.com/phpstan/phpstan/issues/10483
This is an attempt to fix https://phpstan.org/r/7df004e9-cbcd-41b8-a882-363914a91c1a It also fixes the 1st part of https://github.com/phpstan/phpstan/issues/9465 Fixes https://github.com/phpstan/phpstan/issues/5987 I encountered this use-case here: https://github.com/phpstan/phpstan-src/pull/2940#issuecomment-1962383225 . IMO it's a bit of an...
test in #2948 tested only simple conditional type in `@return` as #2948/v1.10.60 release fixed more complex issues, let's assert them with more tests
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [react/async](https://togithub.com/reactphp/async) | `^3` -> `^4` | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ondram/ci-detector](https://togithub.com/OndraM/ci-detector) | `^3.4.0` -> `^4.0.0` | [](https://docs.renovatebot.com/merge-confidence/)...
This PR adds a new extension type to PHPStan. This new extension type allows developers to tell PHPStan when a private method is used. My personal use case: I make...