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 phpstan/phpstan#13089 Some ctype functions asserts non-falsy-string, while others asserts non-empty-string. Test script to see the functions' return value when `''` or `'0'` given ```php

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

See https://github.com/phpstan/phpstan/issues/13585#issuecomment-3335813685 It leaves phpstan/phpstan#13585 unresolved, because the rule does not detect duplicate declarations in different files

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

Follow up to #4495 In PHP 8.5 using both `FILTER_THROW_ON_FAILURE` and `FILTER_NULL_ON_FAILURE` at same time is not allowed. https://3v4l.org/Ibd4B/rfc#vgit.master_jit Not sure about the rule level and the message.

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

This enables support of the `do-break-while-false` pattern: ```php do { if ($foo) { if ($bar) { $a = 'baz'; break; } } $a = foobar($baz); } while (false); // no...