[ ' [ ' [ ' [ ' [ ' [ ' $_) {} echo (string) $i; }', ], ]; } /** * @return array */ public function providerInvalidCodeParse() { return [ 'echoClass' => [ ' 'InvalidArgument', ], 'echoCastClass' => [ ' 'InvalidCast', ], 'invalidToStringReturnType' => [ ' 'InvalidToString', ], 'invalidInferredToStringReturnType' => [ ' 'InvalidToString', ], 'implicitCastWithStrictTypes' => [ ' 'InvalidArgument', ], 'implicitCast' => [ ' 'ImplicitToStringCast', ], 'implicitCastFromInterface' => [ ' 'ImplicitToStringCast', ], 'implicitConcatenation' => [ ' 'ImplicitToStringCast', [], true ], 'resourceCannotBeCoercedToString' => [ ' 'InvalidArgument', ], ]; } }