/PHP-8.2/Zend/tests/type_declarations/variance/ |
H A D | infinite_recursion.phpt | 11 function test(): C {} 14 class C extends Z implements C {} 17 Fatal error: Declaration of Y::test(): C must be compatible with X::test(): I in %s on line %d
|
/PHP-8.2/Zend/tests/ |
H A D | self_in_eval.phpt | 6 class C { 20 C::f(); 26 string(1) "C" 27 string(1) "C"
|
H A D | trait_type_errors.phpt | 16 class C { 19 class P extends C { 22 $c = new C; 41 C::test1(): Return value must be of type int, string returned 42 C::test2(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d 43 C::test3(): Argument #1 ($arg) must be of type int, string given, called in %s on line %d
|
H A D | bug74084.phpt | 7 $$A += $$B['a'] = &$$C; 10 $$A -= $$B['a'] = &$$C; 16 $$A *= $$B['a'] = &$$C; 22 $$A /= $$B['a'] = &$$C; 28 $$A **= $$B['a'] = &$$C;
|
H A D | bug64239_4.phpt | 9 class C extends A { 24 C::Bmethod(); 25 C::t2method(); 30 #0 %s(%d): C::Bmethod()
|
H A D | bug78379.phpt | 5 class C { 17 $e->a = new C; 20 var_dump(new C); 23 object(C)#%d (1) {
|
H A D | lsb_024.phpt | 16 class C extends A { 17 public static $value = 'C'; 21 C::out(); 25 C
|
/PHP-8.2/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | invalid_covariance_drop_type2.phpt | 8 interface C {} 10 class Test implements A, B, C {} 13 public function foo(): A&B&C { 18 /* This fails because just A&B larger than A&B&C */ 27 Fatal error: Declaration of FooChild::foo(): A&B must be compatible with Foo::foo(): A&B&C in %s on…
|
/PHP-8.2/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | invalid_covariance_drop_type2.phpt | 8 interface C {} 11 class Test implements A, B, C {} 14 public function foo(): (A&B&C)|X { 19 /* This fails because just (A&B) larger than ((A&B)&C) */ 28 Fatal error: Declaration of FooChild::foo(): (A&B)|X must be compatible with Foo::foo(): (A&B&C)|X …
|
/PHP-8.2/ext/reflection/tests/ |
H A D | ReflectionClass_getDefaultProperties_001.phpt | 46 class C extends B { 51 public $pubC = "pubC in C"; 52 protected $protC = "protC in C"; 53 private $privC = "privC in C"; 143 ---- Static properties in C ---- 146 [statPubC] => stat pubC in C 156 ---- Default properties in C ---- 159 [statPubC] => stat pubC in C 166 [pubC] => pubC in C 167 [protC] => protC in C [all …]
|
H A D | ReflectionClass_getMethod_002.phpt | 8 class C { 12 $rc = new ReflectionClass("C"); 50 var_dump($rc->getMethod(new C)); 63 Method C::() does not exist 64 Method C::1() does not exist 65 Method C::1.5() does not exist 66 Method C::1() does not exist 68 ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given
|
H A D | ReflectionClass_getProperty_002.phpt | 8 class C { 12 $rc = new ReflectionClass("C"); 50 var_dump($rc->getProperty(new C)); 61 Property C::$ does not exist 62 Property C::$1 does not exist 63 Property C::$1.5 does not exist 64 Property C::$1 does not exist 66 ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given
|
H A D | ReflectionClass_isInstance_basic.phpt | 9 class C implements I {} 13 $classes = array("A", "B", "C", "I", "X"); 17 "myC" => new C, 40 is myA a C? bool(false) 41 is myB a C? bool(false) 42 is myC a C? bool(true) 43 is myX a C? bool(false)
|
H A D | bug42976.phpt | 6 Class C { 13 new C($x); // OK 16 $rc = new ReflectionClass('C'); 29 Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line … 32 Warning: C::__construct(): Argument #1 ($x) must be passed by reference, value given in %s on line …
|
/PHP-8.2/tests/lang/operators/ |
H A D | overloaded_property_ref.phpt | 5 class C { 11 $x = new C; 13 $x = new C; 15 $x = new C;
|
/PHP-8.2/Zend/tests/traits/ |
H A D | abstract_method_6.phpt | 10 abstract class C { 14 class D extends C { 20 Fatal error: Class C must implement 1 abstract private method (C::method) in %s on line %d
|
H A D | abstract_method_10.phpt | 10 class C { 19 Fatal error: Declaration of C::method(int $x): int must be compatible with T::method(C $x): C in %s…
|
H A D | abstract_method_9.phpt | 11 } else if ($class == C::class) { 12 class C { 20 class D extends C {} 24 new C;
|
/PHP-8.2/ext/mbstring/tests/ |
H A D | php_gr_jp_dev_884-2.phpt | 11 var_dump(mb_ereg_replace("C?$", "Z", "ABC")); 12 var_dump(preg_replace("/C?$/", "Z", "ABC")); 13 var_dump(mb_ereg_replace("C*$", "Z", "ABC")); 14 var_dump(preg_replace("/C*$/", "Z", "ABC"));
|
/PHP-8.2/ext/opcache/tests/opt/ |
H A D | inference_003.phpt | 9 class C implements I { 10 public static function wrap(\Throwable $e): C { 11 return $e instanceof C ? $e : new C($e->getMessage());
|
/PHP-8.2/Zend/tests/type_declarations/union_types/ |
H A D | internal_trait_use_typed_union.phpt | 8 class C { 12 $o = new C(); 15 $prop = new \ReflectionProperty(C::class, 'classUnionProp'); 23 object(C)#1 (1) {
|
/PHP-8.2/ext/pdo/tests/ |
H A D | pdo_007.phpt | 21 $db->exec("INSERT INTO test VALUES('C', 'C')"); 44 ["C"]=> 47 string(1) "C" 61 ["C"]=> 64 string(1) "C"
|
/PHP-8.2/tests/classes/ |
H A D | type_hinting_005a.phpt | 5 Class C { function f(array $a) {} } 8 Class D1 extends C { function f(array $a) {} } 11 Class D2 extends C { function f(SomeClass $a) {} } 14 Fatal error: Declaration of D2::f(SomeClass $a) must be compatible with C::f(array $a) in %s on lin…
|
H A D | static_properties_003_error1.phpt | 5 class C { 6 protected static $y = 'C::$y'; 8 $c = new C; 17 Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8
|
H A D | static_properties_003_error2.phpt | 5 class C { 6 protected static $y = 'C::$y'; 8 $c = new C; 17 Fatal error: Uncaught Error: Cannot access protected property C::$y in %s:8
|