[ ' [ ' [ ' [ ['bool' => '$worked'] ] ], 'assignmentInIf' => [ ' [ ' [ ' 5) { echo "hello"; } elseif ($row = (rand(0, 10) ? [5] : null)) { echo $row[0]; }' ], 'ifNotEqualsFalse' => [ ' [ ' [ ' [ ' [ ' [ ' [ ' [ ' 0; if ($a) { echo (string)$matches[1]; }' ], 'functionExists' => [ ' [ 'foo) { echo $a; }' ], 'globalReturn' => [ ' [ ' 1 && is_string($a)) { throw new \Exception("bad"); }', 'assertions' => [ ['string|null' => '$a'] ] ], 'repeatAssertionWithOther' => [ ' 1 || is_string($a)) { if (is_string($a)) { echo strpos("e", $a); } }', 'assertions' => [ ['string|null' => '$a'] ] ], 'refineOredType' => [ ' [ ' [ ' [ ' 'PossiblyUndefinedVariable - somefile.php:6 - Possibly undefined variable $b, ' . 'first seen on line 3' ], 'possiblyUndefinedArrayInIf' => [ ' 'PossiblyUndefinedVariable - somefile.php:3 - Possibly undefined variable ' . '$array, first seen on line 3' ], 'invalidGlobal' => [ ' 'InvalidGlobal' ], 'thisInStatic' => [ ' 'InvalidStaticVariable' ], 'static' => [ ' 'MixedInferredReturnType' ] ]; } }