noverify icon indicating copy to clipboard operation
noverify copied to clipboard

Panic when trying to unboxing variable that can be null

Open Hidanio opened this issue 11 months ago • 0 comments

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

Hidanio avatar Mar 13 '24 14:03 Hidanio