Skip to content

Commit f2a4a2d

Browse files
committed
fix tests for overriding static with self in non-final classes
1 parent 218d03d commit f2a4a2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_abstract_class.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ $foo = new Foo();
2121
var_dump($foo->method2());
2222
?>
2323
--EXPECT--
24-
Fatal error: Declaration of Foo::method2(): Foo must be compatible with B::method2(): static in /app/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_abstract_class.php on line 10
24+
Fatal error: Declaration of Foo::method2(): Foo must be compatible with B::method2(): static in src/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_abstract_class.php on line 10

Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_interface.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ $foo = new Foo();
2121
var_dump($foo->method1());
2222
?>
2323
--EXPECT--
24-
Fatal error: Declaration of Foo::method1(): Foo must be compatible with A::method1(): static in /app/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_interface.php on line 10
24+
Fatal error: Declaration of Foo::method1(): Foo must be compatible with A::method1(): static in src/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_interface.php on line 10

Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_trait.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ $foo = new Foo();
2323
var_dump($foo->method3());
2424
?>
2525
--EXPECT--
26-
Fatal error: Declaration of Foo::method3(): Foo must be compatible with C::method3(): static in /app/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_trait.php on line 12
26+
Fatal error: Declaration of Foo::method3(): Foo must be compatible with C::method3(): static in src/Zend/tests/type_declarations/override_static_type_with_self_in_non_final_class_with_trait.php on line 12

0 commit comments

Comments
 (0)