noverify
noverify copied to clipboard
Panic when trying to unboxing variable that can be null
PHP Version: 7.4
OS: macOS (Sonoma 14.3)
The minimal code in which the bug appears:
<?php
declare(strict_types = 1);
function test() {
$special_items = null;
$test = [...$special_items];
}
Actual Behavior:
Panic while parsing XXXXX: runtime error: slice bounds out of range [5:4]
Expected Behavior:
No exceptions