mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
185 B
185 B
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];
}