[ 'fooFoo(); } }' ], 'instanceOfIntOffset' => [ 'fooFoo(); } }' ], 'notEmptyStringOffset' => [ ' $a */ function bar (array $a) : string { if ($a["bat"]) { return $a["bat"]; } return "blah"; }' ], 'notEmptyIntOffset' => [ ' $a */ function bar (array $a) : string { if ($a[0]) { return $a[0]; } return "blah"; }' ], 'ignorePossiblyNullArrayAccess' => [ ' [], 'error_levels' => ['PossiblyNullArrayAccess'] ] ]; } /** * @return array */ public function providerFileCheckerInvalidCodeParse() { return [ 'invalidArrayAccess' => [ ' 'InvalidArrayAccess' ], 'mixedArrayAccess' => [ ' 'MixedArrayAccess', 'error_level' => ['MixedAssignment'] ], 'mixedArrayOffset' => [ ' 'MixedArrayOffset', 'error_level' => ['MixedAssignment'] ], 'nullArrayAccess' => [ ' 'NullArrayAccess' ], 'possiblyNullArrayAccess' => [ ' 'PossiblyNullArrayAccess' ] ]; } }