,ignored_issues?:list,php_version?:string}> */ public function providerValidCodeParse(): iterable { return [ 'acceptsArrayValuesFn' => [ 'code' => '[] */ function getValues($array) { return array_values($array); } ' ], 'SKIPPED-acceptsIfInArrayFn' => [ 'code' => '|null */ function getValue(string $value, $array) { if (in_array($value, $array)) { return $value; } return null; } ' ], ]; } /** * @return iterable,php_version?:string}> */ public function providerInvalidCodeParse(): iterable { return [ 'valueOfTemplateNotIncludesString' => [ 'code' => ' */ function getValue($array) { return "foo"; } ', 'error_message' => 'InvalidReturnStatement' ], 'valueOfTemplateNotIncludesInt' => [ 'code' => ' */ function getValue($array) { return 0; } ', 'error_message' => 'InvalidReturnStatement' ], ]; } }