[ '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 array */ public function providerFileCheckerInvalidCodeParse() { return [ 'inheritanceLoopOne' => [ ' 'Circular reference', ], 'inheritanceLoopTwo' => [ ' 'Circular reference', ], 'inheritanceLoopThree' => [ ' 'Circular reference', ], 'SKIPPED-invalidDeferredReference' => [ ' 'UndefinedConstant', ], ]; } }