Home
last modified time | relevance | path

Searched refs:parent (Results 26 – 50 of 475) sorted by relevance

12345678910>>...19

/PHP-8.1/Zend/tests/
H A Dbug78898.phpt2 Bug #78898: call_user_func(['parent', ...]) fails while other succeed
23 parent::_x();
24 call_user_func('parent::_x');
25 call_user_func(['parent', '_x']);
H A Dbug60573_2.phpt13 public function setSelf(parent $s) { }
25 public function setSelf(parent $s) { }
34 public function setSelf(parent $s) { }
52 public function setSelf(parent $s) { }
58 public function setSelf(parent $s) { }
H A Derrmsg_029.phpt2 errmsg: cannot use 'parent' as class name
6 class parent {
12 Fatal error: Cannot use 'parent' as class name as it is reserved in %s on line %d
H A Dbug63635.phpt6 public $parent = NULL;
9 function __construct(Node $parent=NULL) {
10 if ($parent) {
11 $parent->children[] = $this;
H A Derrmsg_036.phpt2 errmsg: cannot use 'parent' as interface name
6 class test implements parent {
12 Fatal error: Cannot use 'parent' as interface name, as it is reserved in %s on line %d
H A Dbug48770_2.phpt2 Bug #48770 (call_user_func_array() fails to call parent from inheriting class)
23 call_user_func_array(array($this, 'parent::func2'), array($str));
24 call_user_func_array(array($this, 'parent::func3'), array($str));
27 call_user_func_array(array($this, 'parent::func22'), array($str));
33 call_user_func_array(array($this, 'parent::inexistent'), array($str));
48 parent::func($str);
H A Dbug45862.phpt22 echo "\n From parent scope\n";
23 $parent = new Ancestor();
24 $parent->test();
31 From parent scope
H A Dclass_name_as_scalar_error_006.phpt2 class name as scalar from ::class keyword error using parent in non class context
6 $x = parent::class;
10 Fatal error: Uncaught Error: Cannot use "parent" in the global scope in %s:%d
H A Dgc_017.phpt10 public $parent;
13 $this->parent = null;
16 $node->parent = $this;
23 unset($this->parent);
/PHP-8.1/ext/spl/tests/
H A Diterator_034.phpt10 if (!parent::valid())
24 return parent::getChildren();
30 parent::rewind();
42 parent::__construct($it);
48 parent::rewind();
55 return parent::valid();
61 return parent::current();
67 return parent::key();
73 parent::next();
87 parent::beginChildren();
[all …]
H A Dbug65328.phpt87 protected $parent;
112 * @param Node $parent
117 if(null !== $parent) {
118 $this->parent = $parent;
184 * @param Node $parent
187 public function setParent(Node $parent)
193 $this->parent = $parent;
218 return $this->parent;
280 [parent:protected] => Node Object
288 [parent:protected] => Node Object
[all …]
H A Dbug74058.phpt10 parent::__construct($input, ArrayObject::ARRAY_AS_PROPS);
16 parent::offsetSet($x, $v);
22 return parent::offsetGet($x);
30 parent::__construct($input);
36 parent::offsetSet($x, $v);
42 return parent::offsetGet($x);
H A Diterator_041a.phpt23 parent::__construct(array(1, 2));
30 parent::rewind();
36 return parent::valid();
42 return parent::current();
48 return parent::key();
54 parent::next();
H A Diterator_031.phpt11 parent::rewind();
32 parent::rewind();
38 return parent::valid();
44 parent::append($what);
49 parent::__construct();
91 The object is in an invalid state as the parent constructor was not called
H A Diterator_041.phpt23 parent::__construct(array(1, 2));
30 parent::rewind();
36 return parent::valid();
42 return parent::current();
48 return parent::key();
54 parent::next();
H A Diterator_008.phpt11 parent::rewind();
16 return parent::valid();
21 return parent::current();
26 return parent::key();
31 parent::next();
H A Diterator_041b.phpt23 parent::__construct(array(1, 2));
30 parent::rewind();
36 return parent::valid();
42 return parent::current();
48 return parent::key();
54 parent::next();
/PHP-8.1/ext/reflection/tests/
H A DReflectionParameter_getClass_self_parent_closure.phpt2 Using invalid self/parent types in closure
13 $fn2 = function(parent $x) {};
21 $fn3 = (function(parent $x) {})->bindTo(new Test, Test::class);
34 Parameter uses "parent" as type but function is not a class member
37 Parameter uses "parent" as type although class does not have a parent
H A DReflectionClass_getParentClass.phpt14 $parent = $rc->getParentClass();
15 $grandParent = $parent->getParentClass();
16 var_dump($parent, $grandParent);
/PHP-8.1/Zend/tests/return_types/
H A D026.phpt2 Return type of parent is not allowed in function
6 function test(): parent {}
9 Fatal error: Cannot use "parent" when no class scope is active in %s on line %d
H A D027.phpt2 Return type of parent is allowed in closure
9 $c = function(parent $x): parent { return $x; };
/PHP-8.1/ext/soap/tests/bugs/
H A Dbug37013.phpt27 var $parent;
30 function __construct( $id, $parent ) {
32 $this->parent = $parent;
56parent id="ref2" xsi:type="SOAP-ENC:Struct"><parent xsi:nil="true"/><id xsi:type="xsd:int">1</id><…
/PHP-8.1/Zend/tests/type_declarations/intersection_types/invalid_types/
H A Dinvalid_parent_type.phpt2 parent type cannot take part in an intersection type
9 public function foo(): parent&Iterator {}
14 Fatal error: Type parent cannot be part of an intersection type in %s on line %d
/PHP-8.1/tests/lang/
H A D036.phpt2 Child public element should not override parent private element in parent methods
18 parent::displayMe();
/PHP-8.1/ext/standard/tests/
H A Dbug75220.phpt2 Bug #75220 (is_callable crash for 'parent')
15 var_dump(is_callable('parent::foo'));
16 var_dump(is_callable(array('parent', 'foo')));

Completed in 57 milliseconds

12345678910>>...19