/PHP-8.1/Zend/tests/type_declarations/intersection_types/invalid_types/ |
H A D | invalid_self_type.phpt | 2 self type cannot take part in an intersection type 7 public function foo(): self&Iterator {} 12 Fatal error: Type self cannot be part of an intersection type in %s on line %d
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionMethod_defaultArg.phpt | 6 private function bar($a = self::class) {} 11 private function bar($a = self::class) {} 35 Parameter #0 [ <optional> $a = self::class ] 42 Parameter #0 [ <optional> $a = self::class ]
|
H A D | ReflectionObject_isInstantiable_variation.phpt | 8 return new ReflectionObject(new self); 15 return new ReflectionObject(new self); 22 return new ReflectionObject(new self); 29 return new ReflectionObject(new self);
|
/PHP-8.1/Zend/tests/return_types/ |
H A D | inheritance005.phpt | 2 Internal covariant return type of self 6 public static function test() : self { 12 public static function test() : self {
|
/PHP-8.1/ext/opcache/tests/ |
H A D | preload_bug78175_2.inc | 6 if (null !== self::$loader) { 7 return self::$loader; 9 return self::$loader = new Loader();
|
H A D | bug73789.phpt | 15 $type = self::T_NONE; 23 return self::T_STRING; 25 return self::T_DOT;
|
/PHP-8.1/Zend/tests/ |
H A D | bug80055.phpt | 2 Bug #80055: Abstract trait methods returning "self" cannot be fulfilled by traits 7 abstract public function selfReturner(): self; 11 public function selfReturner(): self {
|
H A D | bug45186_2.phpt | 12 self::ABC(); 16 call_user_func(array('self', 'y')); 17 call_user_func('self::y'); 35 call_user_func('self::y'); 56 call_user_func(): Argument #1 ($callback) must be a valid callback, cannot access "self" when no cl…
|
H A D | bug43332_2.phpt | 2 Bug #43332.2 (self and parent as type hint in namespace) 8 public function bar(\self $a) { } 16 Fatal error: '\self' is an invalid class name in %sbug43332_2.php on line 5
|
H A D | bug60573.phpt | 2 Bug #60573 (type hinting with "self" keyword causes weird errors) 7 public function setSelf(self $s) { } 46 public function setSelf(self $s) { } 52 public function setSelf(self $s) { }
|
H A D | bug69676_2.phpt | 2 Bug #69676: Resolution of self::FOO in class constants not correct (variation) 8 const B = self::A . ' and ' . self::C;
|
H A D | bug38287.phpt | 29 self::get_object()->vars[]=1; 30 self::get_object()->vars[]=2; 31 self::get_object()->vars[]=3; 32 var_dump(self::get_object()->vars);
|
H A D | namespace_name_reserved_keywords.phpt | 18 namespace self { 27 use function self\test as test3; 37 self\test
|
H A D | lsb_018.phpt | 13 if (!isset(self::$instances[$caller])) { 14 self::$instances[$caller] = new $caller; 15 self::$instances[$caller]->instanceId = self::$nextInstanceId++; 17 return self::$instances[$caller];
|
/PHP-8.1/Zend/tests/attributes/ |
H A D | 017_closure_scope.phpt | 17 return #[A1(self::class, self::FOO)] function (#[A1(self::class, self::FOO)] $p) { };
|
/PHP-8.1/Zend/tests/constexpr/ |
H A D | new_self_parent.phpt | 2 new self / new parent in constant expression 11 public static function method($x = new self, $y = new parent) { 16 function invalid($x = new self) {} 38 Cannot access "self" when no class scope is active
|
/PHP-8.1/tests/classes/ |
H A D | singleton_001.phpt | 20 if (self::$m_instance == NULL) { 21 self::$m_instance = new Counter(); 23 return self::$m_instance;
|
H A D | constants_visibility_004.phpt | 12 var_dump(self::X); 13 var_dump(self::Y); 14 var_dump(self::Z);
|
/PHP-8.1/ext/spl/tests/ |
H A D | dualiterator.inc | 98 case self::CURRENT_ARRAY: 100 case self::CURRENT_LHS: 102 case self::CURRENT_RHS: 104 case self::CURRENT_0: 116 case self::KEY_LHS: 118 case self::KEY_RHS: 120 case self::KEY_0: 173 self::CURRENT_0 | self::KEY_0); 183 $it = new DualIterator($lhs, $rhs, self::CURRENT_0 | self::KEY_0);
|
H A D | bug65006.phpt | 2 Bug #65006: spl_autoload_register fails with multiple callables using self, same method 8 spl_autoload_register(array('self','load')); 15 spl_autoload_register(array('self','load'));
|
/PHP-8.1/ext/opcache/tests/jit/ |
H A D | gh8461-007.inc | 17 $this->foo = self::A + $b; 23 $x += self::A; 31 parent::__construct(self::B);
|
H A D | reg_alloc_001.phpt | 23 $type |= self::EXCLUDE_PUBLIC; 25 $type |= self::EXCLUDE_PRIVATE; 28 if ((self::EXCLUDE_STRICT & $filter) ? $type === $filter : $type) {
|
/PHP-8.1/Zend/tests/traits/ |
H A D | abstract_method_10.phpt | 2 Abstract method in trait using "self" (invalid) 7 abstract private function method(self $x): self;
|
/PHP-8.1/ext/tokenizer/tests/ |
H A D | token_get_all_TOKEN_PARSE_002.phpt | 10 const CONTINUE = (self::CONST + 1); 11 const ARRAY = [1, self::CONTINUE => [3, 4], 5]; 41 L4: T_STRING self 54 L5: T_STRING self
|
/PHP-8.1/ext/zip/ |
H A D | php_zip.c | 1441 zval *self = ZEND_THIS; local 1449 ze_obj = Z_ZIP_P(self); 1513 zval *self = ZEND_THIS; local 1540 zval *self = ZEND_THIS; local 1550 ze_obj = Z_ZIP_P(self); 1594 zval *self = ZEND_THIS; local 1611 zval *self = ZEND_THIS; local 1655 zval *self = ZEND_THIS; local 1696 zval *self = ZEND_THIS; local 2944 obj = Z_ZIP_P(self); [all …]
|