Home
last modified time | relevance | path

Searched refs:self (Results 126 – 150 of 418) sorted by relevance

12345678910>>...17

/PHP-8.2/Zend/tests/
H A Dclosure_053.phpt2 Closure 053: self::class in static closure in non-static method.
9 return self::class;
H A Dclosure_054.phpt2 Closure 054: self::class in non-static closure in non-static method.
9 return self::class;
H A Dmagic_methods_021.phpt7 public static function __set_state(array $data): self {}
15 public static function __set_state(array $data): Foo3|self {}
H A Dtemporary_cleaning_012.phpt8 self::$property = new self;
H A Dclass_name_as_scalar.phpt9 const A = self::class;
14 var_dump(self::class); // self compile time lookup
23 $one = self::class,
26 $four = self::B
H A Dbug66015.phpt12 self::FIRST => 'first',
20 var_export(self::$array);
H A Dbug60573_2.phpt2 Bug #60573 (type hinting with "self" keyword causes weird errors) -- variation 2
7 public function setSelf(self $s) { }
46 public function setSelf(self $s) { }
H A Drestore_error_reporting.phpt7 @eval('class self {}');
14 Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d
H A Dbug69676.phpt2 Bug #69676: Resolution of self::FOO in class constants not correct
7 const myDynConst = self::myConst;
H A Dbug41633_2.phpt6 const A = self::B;
11 Fatal error: Uncaught Error: Undefined constant self::B in %s:%d
/PHP-8.2/tests/classes/
H A Dconstants_visibility_001.phpt8 var_dump(self::publicConst);
11 var_dump(self::publicConst);
H A Dconstants_visibility_002.phpt8 var_dump(self::protectedConst);
11 var_dump(self::protectedConst);
H A Dconstants_visibility_003.phpt8 var_dump(self::privateConst);
11 var_dump(self::privateConst);
/PHP-8.2/Zend/tests/traits/
H A Dbug74922c.phpt7 public $x = self::X;
10 public $x = self::X;
H A Dno_static_arg_binding.phpt2 Don't statically bind arguments for self:: calls in traits
11 self::method($i);
H A Dbug76539.phpt2 Bug #76539 (Trait attribute is set incorrectly when using self::class with another string)
6 protected $attr = self::class . 'Test';
/PHP-8.2/ext/openssl/tests/
H A DServerClientTestCase.inc47 if (!isset(self::$instance)) {
48 self::$instance = new self($isWorker);
51 return self::$instance;
56 if (!isset(self::$instance)) {
57 self::$instance = $this;
/PHP-8.2/ext/pdo_mysql/tests/inc/
H A Dmysql_pdo_test.inc12 $dsn = self::getDSN($mydsn);
35 return self::factory('PDO', null, $attr);
85 return self::extractVersion($db->getAttribute(PDO::ATTR_CLIENT_VERSION));
89 return self::extractVersion($db->getAttribute(PDO::ATTR_SERVER_VERSION));
166 $db = self::factory();
173 $db = self::factory();
187 $db = self::factory();
202 if (!self::isPDOMySQLnd()) die($message);
206 $db = self::factory();
208 if (false == self::detect_transactional_mysql_engine($db)) die($message);
/PHP-8.2/ext/ffi/tests/
H A Dlist.phpt14 if (is_null(self::$ffi)) {
15 self::$ffi =
25 $node = FFI::addr(self::$ffi->new("dlist", false));
44 $node = FFI::addr(self::$ffi->new("dlist", false));
/PHP-8.2/Zend/tests/return_types/
H A Dinheritance004.phpt2 Internal covariant return type of self
6 public static function test() : self {
/PHP-8.2/ext/mysqlnd/
H A Dmysqlnd_debug.h26 enum_func_status (*open)(MYSQLND_DEBUG * self, bool reopen);
27 void (*set_mode)(MYSQLND_DEBUG * self, const char * const mode);
28 enum_func_status (*log)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
31 MYSQLND_DEBUG * self, unsigned int line, const char * const file,
34 bool (*func_enter)(MYSQLND_DEBUG * self, unsigned int line, const char * const file,
36 …enum_func_status (*func_leave)(MYSQLND_DEBUG * self, unsigned int line, const char * const file, u…
37 enum_func_status (*close)(MYSQLND_DEBUG * self);
38 enum_func_status (*free_handle)(MYSQLND_DEBUG * self);
/PHP-8.2/ext/reflection/tests/
H A DReflectionReference_bug78263.phpt2 Bug #78263: Handling of self-referential array special case
6 // The case of a directly self-referential array is special and will
H A Dbug53915.phpt8 const B = self::A;
17 const B = self::A;
/PHP-8.2/Zend/tests/type_declarations/variance/
H A Dstatic_variance_failure.phpt2 Failure case for static variance: Replace static with self
10 public function test(): self {}
/PHP-8.2/Zend/tests/type_declarations/
H A Dtyped_properties_043.phpt2 Trying to assign to a static 'self' typed property on a trait must not fixate the type to the trait
7 public static self $selfProp;
8 public static ?self $selfNullProp;
45 Cannot assign stdClass to property Test::$selfProp of type self
48 Cannot assign stdClass to property Test::$selfNullProp of type ?self

Completed in 47 milliseconds

12345678910>>...17