Narrow string type through variable assigned from strlen()/mb_strlen() via conditional expression holders
#5706
Annotations
10 errors and 1 warning
|
PHPStan with result cache:
src/PhpDoc/PhpDocBlock.php#L59
Unused PHPStan\PhpDoc\PhpDocBlock::getParents
|
|
PHPStan with result cache:
src/PhpDoc/PhpDocBlock.php#L51
Unused PHPStan\PhpDoc\PhpDocBlock::getTrait
|
|
PHPStan with result cache:
src/PhpDoc/PhpDocBlock.php#L41
Unused PHPStan\PhpDoc\PhpDocBlock::getFile
|
|
PHPStan with result cache:
src/PhpDoc/PhpDocBlock.php#L36
Unused PHPStan\PhpDoc\PhpDocBlock::getDocComment
|
|
PHPStan with result cache:
src/Parser/VariadicMethodsVisitor.php#L103
Possibly invalid array key type string|null.
|
|
PHPStan with result cache:
src/Parser/VariadicMethodsVisitor.php#L36
Property PHPStan\Parser\VariadicMethodsVisitor::$cache is never read
|
|
PHPStan with result cache:
src/Parser/VariadicFunctionsVisitor.php#L26
Property PHPStan\Parser\VariadicFunctionsVisitor::$cache is never read
|
|
PHPStan with result cache:
src/Fixable/PhpPrinterIndentationDetectorVisitor.php#L75
Property PHPStan\Fixable\PhpPrinterIndentationDetectorVisitor::$indentCharacter (string) does not accept string|non-empty-string.
|
|
PHPStan with result cache:
src/Fixable/PhpPrinterIndentationDetectorVisitor.php#L71
Parameter #1 $string of function strlen expects string, string|non-empty-string given.
|
|
PHPStan with result cache:
src/Fixable/PhpPrinterIndentationDetectorVisitor.php#L69
Parameter #2 $subject of function preg_match expects string, string|non-empty-string given.
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/cache@v4, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1, step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
background
wait
wait-all
cancel
Loading