Searched refs:parent (Results 126 – 150 of 557) sorted by path
12345678910>>...23
2 The default value is a constant in the parent class method's signature.
2 The default value is false in the parent class method's signature.
2 The default value is an integer in the parent class method's signature.
2 The default value is null in the parent class method's signature.
2 Getting parent class name when there is no parent generates an error8 var_dump(parent::class);20 Fatal error: Uncaught Error: Cannot use "parent" when current class scope has no parent in %s:5
18 var_dump(parent::myDynConst);
2 Return type allowed in child when parent does not have return type9 return parent::current();
2 Return type of parent is not allowed in function6 function test(): parent {}9 Fatal error: Cannot use "parent" when no class scope is active in %s on line %d
2 Return type of parent is allowed in closure9 $c = function(parent $x): parent { return $x; };
12 public static function test() : parent {
15 throw new UnexpectedValueException('parent');
10 throw new \Exception('parent');
10 parent::__construct();
2 Bug #76773 (Traits used on the parent are ignored for child classes) [original test with deprecated…12 if (\is_callable(array('parent', __FUNCTION__))) {13 parent::hello();34 Deprecated: Use of "parent" in callables is deprecated in %s on line %d
2 Bug #76773 (Traits used on the parent are ignored for child classes)13 parent::hello();
31 echo parent::PROTECTED, ' via parent', PHP_EOL;55 protected via parent
2 The same name constant of a trait used in a class that inherits a constant defined in a parent can …
2 parent:: works like in a method defined without traits.15 parent::sayHello();
19 /* This fails because A is a parent type for B */
2 parent type cannot take part in an intersection type9 public function foo(): parent&Iterator {}14 Fatal error: Type parent cannot be part of an intersection type in %s on line %d
18 /* This fails because A is a parent type for B */
2 Replacing not-loadable parent intersection type with loadable child intersection type
Completed in 45 milliseconds