phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository.

Results 408 phpstan-src issues
Sort by recently updated
recently updated
newest added

Closes https://github.com/phpstan/phpstan/issues/13881

tests in https://github.com/phpstan/phpstan-deprecation-rules/pull/170

dba_* functions had their signature changed in PHP 8.4 to return a \Dba\Connection instance.

the result of `array_merge` will always contain all `string` keys we see along the way. ~~we can't reason about the values when not all arrays are constant, but we can...

This one does not add too much value, but I just didn't want to do `instanceof ErrorType` in my extensions 😄

`$type->toArrayKey() instanceof ErrorType` is not the right check cause `true, false, 1.0, null, ...` are ignored by the function. It has to be an int or a string. And numeric...

similar to https://github.com/phpstan/build-infection/pull/30 requires https://github.com/phpstan/phpstan-src/pull/4525

closes https://github.com/phpstan/phpstan/issues/13747 --- fixes ~55x "offset might not exist" errors on phpstan-src with `reportPossiblyNonexistentGeneralArrayOffset: true`

Closes https://github.com/phpstan/phpstan-src/pull/2350 Closes https://github.com/phpstan/phpstan/issues/4890

Naming to debate ? `__stringwithoutstringable` ? `__strictstring` ? `intval($stringable)` is never allowed, even without strict_types. The current check in FunctionCallParameterCheck is ``` $this->ruleLevelHelper->accepts($parameterType, $argumentValueType, $scope->isDeclareStrictTypes()); ``` either we're doing something...