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

Probably fixes even https://github.com/phpstan/phpstan/issues/10125 ``` Warning: A non-numeric value encountered on phar:///home/honza/Development/shipmonk/phpstan-rules/vendor/phpstan/phpstan/phpstan.phar/src/Type/ExponentiateHelper.php:72 ``` Found in https://github.com/shipmonk-rnd/phpstan-rules tests when run with new https://github.com/phpstan/phpstan-src/commit/204ab2787f88bc31c4b2d30db0715997f3da4549

closes https://github.com/phpstan/phpstan/issues/6788

Ideally, available vcpus should be used...

This implements the `stringable-object` type that Psalm also supports. A notable difference is that on PHP 8 it is simply an alias for `Stringable`. On top of this type a...

Improves https://github.com/phpstan/phpstan/issues/11872 but does not exactly what I hope would be possible. But with the way things currently work (going through conditions and filtering the scope) this might just not...

fix https://github.com/phpstan/phpstan/issues/11762

WIP Closes https://github.com/phpstan/phpstan/issues/11799

I'll use the logic from LooseComparisonHelper in https://github.com/phpstan/phpstan-src/pull/3484 After the refacto, `compareConstantScalars` doesn't seems so useful and we could have the pattern ``` [$leftValue, $rightValue] = LooseComparisonHelper::getConstantScalarValuesForComparison($this, $type, $phpVersion); ```...

Closes https://github.com/phpstan/phpstan/issues/6807 Closes https://github.com/phpstan/phpstan/issues/8463 Closes https://github.com/phpstan/phpstan/issues/9374 analogue to `while`. contains also a slight simplification in the setting of `$isAlwaysTerminating` for `while` loops to keep this more in sync. I had...

Closes https://github.com/phpstan/phpstan/issues/11775 Docs PR: https://github.com/phpstan/phpstan/pull/11783 I decided to directly adapt `ClassReflection::isImmutable()` because there is already `ClassReflection::isReadonly()` for native readonly and that would clash. An alternative would be to add a...