Lines Matching refs:parent
2 Use of parent inside a class that has / has no parent
6 // Illegal: A::parent is ill-defined
8 public function method(parent $x) {}
11 public function method(parent $x) {}
14 // Legal: A2::parent == P2
17 public function method(parent $x) {}
23 // Legal: B3::parent == A3 is subclass of A3::parent == P3 in covariant position
26 public function method($x): parent {}
29 public function method($x): parent {}
32 // Illegal: B4::parent == A4 is subclass of A4::parent == P4 in contravariant position
35 public function method(parent $x) {}
38 public function method(parent $x) {}
43 Deprecated: Cannot use "parent" when current class scope has no parent in %s on line %d
47 …t check compatibility between B::method(A $x) and A::method(parent $x), because class parent is no…