Skip to content

Error on unserialize() without allowed_classes option #428

Error on unserialize() without allowed_classes option

Error on unserialize() without allowed_classes option #428

Triggered via pull request June 9, 2026 13:42
Status Failure
Total duration 1m 13s
Artifacts

build.yml

on: pull_request
Coding Standard
24s
Coding Standard
Name Collision Detector
19s
Name Collision Detector
Matrix: Lint
Matrix: PHPStan
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

14 errors
PHPStan (8.4, highest)
Process completed with exit code 2.
PHPStan (8.4, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (8.5, highest)
Process completed with exit code 2.
PHPStan (8.0, highest)
Process completed with exit code 2.
PHPStan (8.5, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (8.0, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (8.3, highest)
Process completed with exit code 2.
PHPStan (8.3, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (8.2, highest)
Process completed with exit code 2.
PHPStan (8.2, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (8.1, highest)
Process completed with exit code 2.
PHPStan (8.1, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.
PHPStan (7.4, highest)
Process completed with exit code 2.
PHPStan (7.4, highest): src/Rules/Functions/UnserializeAllowedClassesRule.php#L55
Strict comparison using === between PhpParser\Node\ArrayItem and null will always evaluate to false.