,error_levels?:string[]}> */ public function providerValidCodeParse(): iterable { return [ 'simpleVars' => [ ' [ '$a' => 'string', '$b' => 'string', ], ], 'simpleVarsWithSeparateTypes' => [ ' [ '$a' => 'string', '$b' => 'int', ], ], 'simpleVarsWithSeparateTypesInVar' => [ ' [ '$a' => 'string', '$b' => 'int', ], ], 'thisVar' => [ 'a, $this->b) = ["a", "b"]; return $this->a; } }', ], 'mixedNestedAssignment' => [ ' [ '$a' => 'mixed', '$b' => 'mixed', '$c' => 'mixed', ], ], ]; } /** * @return iterable */ public function providerInvalidCodeParse(): iterable { return [ 'thisVarWithBadType' => [ 'a, $this->b) = ["a", "b"]; return $this->a; } }', 'error_message' => 'InvalidPropertyAssignmentValue - src' . DIRECTORY_SEPARATOR . 'somefile.php:11', ], ]; } }