Home
last modified time | relevance | path

Searched refs:self (Results 51 – 75 of 398) sorted by relevance

12345678910>>...16

/PHP-8.1/Zend/tests/type_declarations/intersection_types/invalid_types/
H A Dinvalid_self_type.phpt2 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 DReflectionMethod_defaultArg.phpt6 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 DReflectionObject_isInstantiable_variation.phpt8 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 Dinheritance005.phpt2 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 Dpreload_bug78175_2.inc6 if (null !== self::$loader) {
7 return self::$loader;
9 return self::$loader = new Loader();
H A Dbug73789.phpt15 $type = self::T_NONE;
23 return self::T_STRING;
25 return self::T_DOT;
/PHP-8.1/Zend/tests/
H A Dbug80055.phpt2 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 Dbug45186_2.phpt12 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 Dbug43332_2.phpt2 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 Dbug60573.phpt2 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 Dbug69676_2.phpt2 Bug #69676: Resolution of self::FOO in class constants not correct (variation)
8 const B = self::A . ' and ' . self::C;
H A Dbug38287.phpt29 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 Dnamespace_name_reserved_keywords.phpt18 namespace self {
27 use function self\test as test3;
37 self\test
H A Dlsb_018.phpt13 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 D017_closure_scope.phpt17 return #[A1(self::class, self::FOO)] function (#[A1(self::class, self::FOO)] $p) { };
/PHP-8.1/Zend/tests/constexpr/
H A Dnew_self_parent.phpt2 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 Dsingleton_001.phpt20 if (self::$m_instance == NULL) {
21 self::$m_instance = new Counter();
23 return self::$m_instance;
H A Dconstants_visibility_004.phpt12 var_dump(self::X);
13 var_dump(self::Y);
14 var_dump(self::Z);
/PHP-8.1/ext/spl/tests/
H A Ddualiterator.inc98 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 Dbug65006.phpt2 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 Dgh8461-007.inc17 $this->foo = self::A + $b;
23 $x += self::A;
31 parent::__construct(self::B);
H A Dreg_alloc_001.phpt23 $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 Dabstract_method_10.phpt2 Abstract method in trait using "self" (invalid)
7 abstract private function method(self $x): self;
/PHP-8.1/ext/tokenizer/tests/
H A Dtoken_get_all_TOKEN_PARSE_002.phpt10 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 Dphp_zip.c1441 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 …]

Completed in 70 milliseconds

12345678910>>...16