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.
Return value of `microtime(false)` is never falsy.
Fixes phpstan/phpstan#13444
closes https://github.com/phpstan/phpstan/issues/12234 closes https://github.com/phpstan/phpstan/issues/12735
## Summary Adds a new `--stop-on-failure` CLI option that stops PHPStan analysis immediately when the first error is encountered in any file. ## Changes - **New CLI Option**: `--stop-on-failure` flag...
Right now, the `range` function returns a list Type for large numbers. we can narrow this down, because we do actually know the upper and lower bounds of the keys,...
This will permit to easilly assign types to global variables in an extension. Without this change, it is not possible to distinguish local variables from global variables. Related to https://github.com/phpstan/phpstan/issues/13243...
Hello! ### Motivation I've had issues with developers adding the doc comment after attributes: ```php #[Foo] /** @param array $foo */ function bad(array $foo): void {...} // should be /**...
WIP (This PR still doesn't work as intended) - [x] Add bound scope to Name node (`Closure::bind()`) - [ ] Add bound scope to Name node (`Closure::bindTo()`) - [ ]...
closes https://github.com/phpstan/phpstan/issues/10942 ・Summary Treat identical late-resolvable conditional types as compatible before resolving them. Short-circuit when the same conditional appears inside a union. Add regression test for bug #10942. ・Testing vendor/bin/phpunit...
Fix my mistake in https://github.com/phpstan/phpstan-src/pull/482. See .