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