Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 297 Bytes

PossiblyUndefinedStringArrayOffset.md

File metadata and controls

14 lines (11 loc) · 297 Bytes

PossiblyUndefinedStringArrayOffset

Emitted when the config flag ensureArrayStringOffsetsExist is set to true and an integer-keyed offset is not checked for existence

<?php

/**
 * @param array<string, string> $arr
 */
function foo(array $arr) : void {
    echo $arr["hello"];
}