,error_levels?:string[]}> */ public function providerValidCodeParse() { return [ 'implicitFourthLoop' => [ ' [ ' [ '$a' => 'bool', ], ], 'forLoopwithOKChange' => [ ' [ ' 0]; for ($d = 0; $d <= 10; $d++) { for ($k = -$d; $k <= $d; $k += 2) { if ($k === -$d || ($k !== $d && $v[$k-1] < $v[$k+1])) { $x = $v[$k+1]; } else { $x = $v[$k-1] + 1; } $v[$k] = $x; } } }', ], 'whileTrueWithBreak' => [ ' [ '$a' => 'string', '$b' => 'int', ], ], 'continueOutsideLoop' => [ 'next; $node->next = null; } }', ], 'echoAfterFor' => [ ' [ ' */ public function providerInvalidCodeParse() { return [ 'possiblyUndefinedArrayInWhileAndForeach' => [ ' 'PossiblyUndefinedGlobalVariable - src' . DIRECTORY_SEPARATOR . 'somefile.php:4:29 - Possibly undefined ' . 'global variable $array, first seen on line 4', ], 'forLoopInvalidation' => [ ' 'LoopInvalidation', ], 'forInfiniteNoBreak' => [ ' 'UndefinedGlobalVariable', ], 'nestedEchoAfterFor' => [ ' 'PossiblyUndefinedGlobalVariable', ], ]; } }