,error_levels?:string[]}> */ public function providerValidCodeParse() { return [ 'internalMethodWithCall' => [ ' [ ' [ 'barBar(); } } }', ], 'internalClassExtendingNamespaceWithStaticCall' => [ ' [ ' [ ' [ 'foo; } } }', ], 'internalPropertySet' => [ 'foo = 5; } } }', ], 'internalMethodInTraitWithCall' => [ ' [ 'foo; } } }', ], ]; } /** * @return iterable */ public function providerInvalidCodeParse() { return [ 'internalMethodWithCall' => [ ' 'InternalMethod', ], 'internalClassWithStaticCall' => [ ' 'InternalClass', ], 'internalClassWithInstanceCall' => [ 'barBar(); } } }', 'error_message' => 'InternalMethod', ], 'internalClassWithNew' => [ ' 'InternalClass', ], 'internalClassWithExtends' => [ ' 'InternalClass', ], 'internalPropertyGet' => [ 'foo; } } }', 'error_message' => 'InternalProperty', ], 'internalPropertySet' => [ 'foo = 5; } } }', 'error_message' => 'InternalProperty', ], 'magicPropertyGetInternalExplicit' => [ '__get("foo"); } } }', 'error_message' => 'InternalMethod', ], ]; } }