Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 185 Bytes

PossiblyNullArrayOffset.md

File metadata and controls

11 lines (8 loc) · 185 Bytes

PossiblyNullArrayOffset

Emitted when trying to access a value on an array using a possibly null offset

<?php

function foo(?int $a) : void {
    echo [1, 2, 3, 4][$a];
}