,error_levels?:string[]}> */ public function providerValidCodeParse(): iterable { return [ 'singleFileInheritance' => [ 'barBar(); } protected function barBar(): void { echo "hello"; } }', ], 'constSandwich' => [ ' [ ' [ '$a' => 'int', ], ], 'moreCyclicalReferences' => [ ' [ 'c(); } }', ], 'referenceToClassInMethod' => [ 'b(new A()); } }', ], 'classTraversal' => [ 'bar; } } class C extends B { const DOPE = "dope"; }', ], ]; } /** * @return iterable */ public function providerInvalidCodeParse(): iterable { return [ 'inheritanceLoopOne' => [ ' 'Circular reference', ], 'inheritanceLoopTwo' => [ ' 'Circular reference', ], 'inheritanceLoopThree' => [ ' 'Circular reference', ], 'SKIPPED-invalidDeferredReference' => [ ' 'UndefinedConstant', ], ]; } }