mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +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];
}