/php-src/Zend/tests/type_declarations/dnf_types/ |
H A D | gh9516.phpt | 2 GH-9516: (A&B)|D as a param should allow AB or D. Not just A. 6 interface A { } 10 class A_ implements A {} 12 class AB_ implements A, B {} 16 public function method1((A&B)|D $arg): void {} 17 public function method2((B&A)|D $arg): void {} 18 public function method3(D|(A&B) $arg): void {} 19 public function method4(D|(B&A) $arg): void {} 142 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, A_ given, called in %s on line %d 143 T::method1(): Argument #1 ($arg) must be of type (A&B)|D, B_ given, called in %s on line %d [all …]
|
/php-src/tests/classes/ |
H A D | property_override_protected_private.phpt | 5 class A 7 protected $p = "A::p"; 14 class B extends A 24 $a = new A; 32 Fatal error: Access level to B::$p must be protected (as in class A) or weaker in %s on line 11
|
H A D | constants_visibility_001.phpt | 5 class A { 15 var_dump(A::publicConst); 16 A::staticConstDump(); 17 (new A())->constDump();
|
H A D | constants_visibility_error_003.phpt | 2 A redeclared class constant must have the same or higher visibility 6 class A { 10 class B extends A { 15 Fatal error: Access level to B::publicConst must be public (as in class A) in %s on line 7
|
H A D | constants_visibility_error_004.phpt | 2 A redeclared class constant must have the same or higher visibility 6 class A { 10 class B extends A { 15 Fatal error: Access level to B::protectedConst must be protected (as in class A) or weaker in %s on…
|
/php-src/Zend/tests/type_declarations/variance/ |
H A D | class_order_autoload6.phpt | 7 if ($class == 'A') { 8 class A 13 var_dump(new A); 15 class B extends A 34 object(A)#2 (0) {
|
/php-src/Zend/tests/type_declarations/dnf_types/variance/ |
H A D | valid1.phpt | 6 interface A {} 10 class Test implements A, B, C {} 13 public function foo(): A { 19 public function foo(): A&B { 25 public function foo(): A&B&C {
|
/php-src/Zend/tests/type_declarations/intersection_types/variance/ |
H A D | valid1.phpt | 6 interface A {} 10 class Test implements A, B, C {} 13 public function foo(): A { 19 public function foo(): A&B { 25 public function foo(): A&B&C {
|
/php-src/Zend/tests/type_declarations/dnf_types/redundant_types/ |
H A D | object_and_dnf_type.phpt | 2 A DNF type which contains object is redundant 6 interface A {} 9 function test(): (A&B)|object {} 14 Fatal error: Type (A&B)|object contains both object and a class type, which is redundant in %s on l…
|
H A D | object_and_dnf_type2.phpt | 2 A DNF type which contains object is redundant 2 6 interface A {} 9 function test(): object|(A&B) {} 14 Fatal error: Type (A&B)|object contains both object and a class type, which is redundant in %s on l…
|
/php-src/Zend/tests/type_declarations/intersection_types/ |
H A D | missing_interface_intersection_type.phpt | 10 class A implements X {} 17 return new A(); 32 $a = new A(); 48 foo(): Return value must be of type X&Y, A returned 49 Cannot assign A to property Collection::$intersect of type X&Y 50 bar(): Argument #1 ($o) must be of type X&Y, A given, called in %s on line %d
|
/php-src/Zend/tests/ |
H A D | list_keyed_evaluation_order.phpt | 8 $a = new StringCapable("A"); 11 $e = new IndexableRetrievable("E", new Indexable(["A" => "value for offset A", "C" => "value for of… 30 A evaluated. 31 Offset A retrieved. 32 Offset B set to value for offset A.
|
H A D | closure_059.phpt | 5 class A { 11 $a = new A; 14 $f = function (A $a){}; 37 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given, called in %s on line %d 38 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given 39 Exception: {closure:%s:%d}(): Argument #1 ($a) must be of type A, B given
|
H A D | bug66252.phpt | 5 class A { 6 const HW = "this is A"; 8 class B extends A { 15 this is A extended by B
|
H A D | gh10169.phpt | 5 class A 19 $a = new A(); 26 $a = new A(); 36 Object was released while assigning to property A::$prop 37 Object was released while assigning to property A::$prop
|
H A D | get_class_vars_005.phpt | 6 class A { 11 class B extends A { 14 var_dump(get_class_vars('A')); 19 var_dump(get_class_vars('A'));
|
/php-src/ext/zend_test/tests/ |
H A D | observer_bug81430_2.phpt | 18 class A { 24 #[A] 28 call_user_func([$r->getAttributes(A::class)[0], 'newInstance']); 41 <!-- init A::__construct() --> 42 <A::__construct> 51 </A::__construct>
|
/php-src/Zend/tests/numeric_strings/ |
H A D | invalid_numeric_string_must_generate_warning_assign.phpt | 163 Warning: A non-numeric value encountered in %s on line %d 165 Warning: A non-numeric value encountered in %s on line %d 170 Warning: A non-numeric value encountered in %s on line %d 172 Warning: A non-numeric value encountered in %s on line %d 177 Warning: A non-numeric value encountered in %s on line %d 179 Warning: A non-numeric value encountered in %s on line %d 184 Warning: A non-numeric value encountered in %s on line %d 186 Warning: A non-numeric value encountered in %s on line %d 191 Warning: A non-numeric value encountered in %s on line %d 193 Warning: A non-numeric value encountered in %s on line %d [all …]
|
/php-src/Zend/tests/traits/ |
H A D | bug55137.phpt | 6 trait A { 13 use A { 14 A::foo as public; 15 A::bar as public baz;
|
H A D | bug60165b.phpt | 6 trait A { 11 use A { 12 A::nonExistent as barA; 17 Fatal error: An alias was defined for A::nonExistent but this method does not exist in %s on line %d
|
/php-src/Zend/tests/prop_const_expr/ |
H A D | attributes.phpt | 8 enum A: string { 17 #[Attr(A::B->name)] 18 #[Attr(A::B->value)] 19 #[Attr(A::B?->name)] 20 #[Attr(A::B?->value)]
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | bug46542.phpt | 7 class A extends PDO 10 $a = new A('sqlite:' . __DIR__ . '/dummy.db'); 21 A::truc 22 A::TRUC
|
/php-src/ext/standard/tests/array/ |
H A D | bug26458.phpt | 5 $test = array("A\x00B" => "Hello world"); 12 ["A%0B"]=> 16 'A' . "\0" . 'B' => 'Hello world', 18 ["A%0B"]=>
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_class_constants_inheritance_error6.phpt | 6 interface A { 7 public const string CONST1 = 'A'; 10 class B implements A { 16 Fatal error: Type of B::CONST1 must be compatible with A::CONST1 of type string in %s on line %d
|
/php-src/ext/soap/tests/bugs/ |
H A D | bug66112.phpt | 11 …ient=new soapclient(WSDL, array('typemap'=>array(array("type_ns"=>"uri:mist", "type_name"=>"A")))); 16 return array("A"=>"ABC","B"=>"sss"); 18 $s = new SoapServer(WSDL, array('typemap'=>array(array("type_ns"=>"uri:mist", "type_name"=>"A")))); 26 <uri:Request><uri:A>XXX</uri:A><uri:B>yyy</uri:B></uri:Request> 35 ….org/soap/envelope/" xmlns:ns1="uri:mist"><SOAP-ENV:Body><ns1:Response><A>ABC</A><B>sss</B></ns1:R…
|