*/ public function providerValidCodeParse() { return [ 'addPureAnnotationToFunction' => [ ' [ ' [ ' [ 'foo; } }', 'foo; } }', '7.4', ['MissingPureAnnotation'], true, ], 'dontAddPureAnnotationToFunctionWithImpureCall' => [ ' [ ' $arr */ function foo(array $arr): array { return array_map($arr, function ($s) { echo $s; return $s;}); }', ' $arr */ function foo(array $arr): array { return array_map($arr, function ($s) { echo $s; return $s;}); }', '7.4', ['MissingPureAnnotation'], true, ], ]; } }