/PHP-8.0/Zend/tests/ |
H A D | magic_methods_inheritance_rules.phpt | 10 public function __clone(): void {} 12 public function __debugInfo(): ?array {} 14 public function __get(string $name): mixed {} 16 public function __invoke(mixed $arguments): mixed {} 18 public function __isset(string $name): bool {} 20 public function __serialize(): array {} 26 public function __sleep(): array {} 28 public function __toString(): string {} 32 public function __unset(string $name): void {} 34 public function __wakeup(): void {} [all …]
|
H A D | bug80391.phpt | 7 public function method1(): mixed {} 8 public function method2(): array|object {} 9 public function method3(iterable $x) {} 10 public function method4(iterable $x) {} 14 public function method1(): iterable {} 15 public function method2(): iterable {} 16 public function method3(mixed $x) {} 17 public function method4(array|object $x) {}
|
H A D | bug52614.phpt | 6 public $a1; 7 public $a2 = array(); 8 public $a3; 9 public $o1; 10 public $o2; 12 public function f1() { 16 public function f2() { 20 public function f3() { 25 public function f4() { 29 public function f5() { [all …]
|
H A D | bug60573_2.phpt | 7 public function setSelf(self $s) { } 13 public function setSelf(parent $s) { } 19 public function setSelf(Foo2 $s) { } 25 public function setSelf(parent $s) { } 34 public function setSelf(parent $s) { } 40 public function setSelf(Base $s) { } 46 public function setSelf(self $s) { } 52 public function setSelf(parent $s) { } 58 public function setSelf(parent $s) { }
|
H A D | bug60573.phpt | 7 public function setSelf(self $s) { } 13 public function setSelf(parent $s) { } 19 public function setSelf(Foo2 $s) { } 25 public function setSelf(parent $s) { } 34 public function setSelf(parent $s) { } 40 public function setSelf(Base $s) { } 46 public function setSelf(self $s) { } 52 public function setSelf(self $s) { }
|
H A D | lsb_020.phpt | 2 ZE2 Late Static Binding properties and methods declared as public and overridden as public. 6 public static $staticVar; 8 public static function staticFunction() { 12 public static function testStaticVar() { 18 public static function testStaticFunction() { 24 public static $staticVar; 26 public static function staticFunction() {
|
/PHP-8.0/ext/reflection/tests/ |
H A D | ReflectionClass_toString_001.phpt | 15 Constant [ public int IS_IMPLICIT_ABSTRACT ] { 16 } 16 Constant [ public int IS_EXPLICIT_ABSTRACT ] { 64 } 17 Constant [ public int IS_FINAL ] { 32 } 27 Property [ public $name = '' ] 52 Method [ <internal:Reflection> public method getName ] { 58 Method [ <internal:Reflection> public method isInternal ] { 100 Method [ <internal:Reflection> public method getEndLine ] { 118 Method [ <internal:Reflection> public method hasMethod ] { 125 Method [ <internal:Reflection> public method getMethod ] { 231 Method [ <internal:Reflection> public method isTrait ] { [all …]
|
/PHP-8.0/ext/opcache/tests/ |
H A D | preload_variance.inc | 6 public function method(X $a) {} 9 public function method($a) : X {} 14 public function method($a): self {} 15 public function method2($a): C {} 17 public function method4(D $a) {} 21 public function method2($a): D {} 23 public function method4(C $a) {} 30 public I|J $prop; 31 public function method($a): I {} 34 public J|I $prop; [all …]
|
/PHP-8.0/Zend/tests/return_types/ |
H A D | 043.phpt | 6 public function __get($name): bool {} 7 public function __call($name, $args): string {} 8 public static function __callStatic($name, $args): self {} 9 public function __invoke(): self {} 13 public function __get($name): string|array {} 14 public function __call($name, $args): int|float {} 16 public function __invoke(): Foo|int {} 20 public function __get($name): mixed {} 21 public function __call($name, $args): mixed {} 22 public static function __callStatic($name, $args): mixed {} [all …]
|
/PHP-8.0/Zend/tests/type_declarations/variance/ |
H A D | static_variance_success.phpt | 7 public function test1(): self {} 8 public function test2(): B {} 9 public function test3(): object {} 10 public function test4(): X|Y|self {} 11 public function test5(): ?static {} 15 public function test1(): static {} 16 public function test2(): static {} 17 public function test3(): static {} 18 public function test4(): X|Y|static {} 19 public function test5(): static {}
|
/PHP-8.0/Zend/tests/type_declarations/union_types/variance/ |
H A D | valid.phpt | 10 public X|Y $prop; 11 public iterable $prop2; 13 public function method(int $a): int|float {} 14 public function method2(B|string $a): A|string {} 15 public function method3(Y|B $a): X|A {} 16 public function method4(Traversable|X $a): iterable|X {} 19 public X $prop; 20 public array|Traversable $prop2; 22 public function method(int|float $a): int {} 23 public function method2(A|string $a): B|string {} [all …]
|
/PHP-8.0/Zend/tests/variadic/ |
H A D | legal_variadic_override.phpt | 7 public function test1($a, $b) {} 8 public function test2(int $a, int $b) {} 9 public function test3(int $a, int $b) {} 10 public function test4(int $a, string $b) {} 11 public function test5(&$a, &$b) {} 15 public function test1(...$args) {} 16 public function test2(...$args) {} 17 public function test3(int ...$args) {} 18 public function test4(int|string ...$args) {} 19 public function test5(&...$args) {}
|
/PHP-8.0/Zend/tests/type_declarations/ |
H A D | add_return_type.phpt | 7 public function a(); 8 public function b(); 9 public function c(); 10 public function d(); 14 public function a() : stdClass; 15 public function c() : callable; 16 public function b() : array; 17 public function d() : int;
|
H A D | typed_properties_016.phpt | 6 public int $int = 1; 7 public float $flt = 2.2; 8 public float $flt2 = 2; 9 public array $arr = []; 10 public bool $bool = false; 11 public iterable $iter = [];
|
/PHP-8.0/Zend/tests/type_declarations/mixed/validation/ |
H A D | mixed_property_weak_success.phpt | 8 public mixed $property1; 9 public mixed $property2 = null; 10 public mixed $property3 = false; 11 public mixed $property4 = true; 12 public mixed $property5 = 1; 13 public mixed $property6 = 3.14; 14 public mixed $property7 = "foo"; 15 public mixed $property8 = []; 16 public mixed $property9; 18 public function __construct()
|
H A D | mixed_property_strict_success.phpt | 9 public mixed $property1; 10 public mixed $property2 = null; 11 public mixed $property3 = false; 12 public mixed $property4 = true; 13 public mixed $property5 = 1; 14 public mixed $property6 = 3.14; 15 public mixed $property7 = "foo"; 16 public mixed $property8 = []; 17 public mixed $property9; 19 public function __construct()
|
/PHP-8.0/ext/standard/tests/serialize/ |
H A D | bug49649.phpt | 2 Bug #49649 (unserialize() doesn't handle changes in property visibility) - to public 13 * public $public = 3; 15 * public $notThere = 'old'; 26 public $public = null; 28 public $protected = null; 30 public $private = null; 38 ["public"]=>
|
H A D | bug64146.phpt | 10 public $a = array(); 12 public function __construct() 21 public $b; 23 public function __construct($c) 28 public function serialize() 33 public function unserialize($data) 41 public $c; 43 public function __construct($c)
|
/PHP-8.0/Zend/tests/closures/ |
H A D | closure_from_callable.inc | 51 public function publicInstanceFunc($param1) 56 public function closePrivateValid() 61 public function closePrivateStatic() 66 public function bar($param1) 71 public function getCallable() 76 public function getSelfPublicInstance() 91 public function closePrivateStaticInvalid() 97 public function closePrivateInvalid() 107 public function closeProtectedValid() 137 public function __call($name, $arguments) [all …]
|
/PHP-8.0/Zend/tests/type_declarations/mixed/inheritance/ |
H A D | mixed_return_inheritance_success2.phpt | 8 public function method(): mixed {} 13 public function method(): bool {} 18 public function method(): int {} 23 public function method(): float {} 28 public function method(): string {} 33 public function method(): array {} 38 public function method(): object {} 43 public function method(): stdClass {} 48 public function method(): ?int {} 53 public function method(): ?stdClass {}
|
/PHP-8.0/tests/lang/ |
H A D | bug27439.phpt | 7 public $a = 1; 8 public $b = 2; 9 public $c = 3; 13 public $array = array(1,2,3); 14 public $string = "string"; 28 public function case1() { 34 public function case2() { 38 public function case3() { 42 public function case4() { 46 public function case5() { [all …]
|
/PHP-8.0/tests/classes/ |
H A D | clone_003.phpt | 7 public $p2 = 'base:2'; 8 public $p3 = 'base:3'; 9 public $p4 = 'base:4'; 10 public $p5 = 'base:5'; 12 public function __clone() { 17 public $p1 = 'test:1'; 18 public $p3 = 'test:3'; 19 public $p4 = 'test:4'; 20 public $p5 = 'test:5'; 21 public function __clone() {
|
H A D | private_members_serialization.phpt | 9 public $public = 'public'; 14 public function __sleep() 16 return array("\0foo\0private", 'protected', 'public'); 23 …2:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected";s:6:"public";s:6:"public";}"
|
/PHP-8.0/ext/sqlite3/tests/ |
H A D | stream_test.inc | 6 public static $string_length = 10; 7 public static $string = "abcdefg\0hi"; 9 public function stream_open($path, $mode, $options, &$opened_path) 15 public function stream_read($count) 22 public function stream_write($data) 27 public function stream_stat() 32 public function stream_tell() 37 public function stream_eof()
|
/PHP-8.0/ext/session/tests/ |
H A D | bug79091.phpt | 11 public function close() 16 public function destroy($session_id) 21 public function gc($maxlifetime) 26 public function open($save_path, $session_name) 31 public function read($session_id) 36 public function write($session_id, $session_data) 41 public function create_sid() 46 public function updateTimestamp($key, $val) 51 public function validateId($key)
|