You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For classes that are not declared `abstract`, produce a compiler error for any
`abstract` methods. For anonymous classes, since they cannot be made abstract,
the error message is slightly different.
Co-authored-by: Ilija Tovilo <[email protected]>
Copy file name to clipboardExpand all lines: Zend/tests/errmsg/errmsg_018.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@ class test {
10
10
echo"Done\n";
11
11
?>
12
12
--EXPECTF--
13
-
Fatal error: Class test contains 1 abstract method and must therefore be declared abstract or implement the remaining method (test::foo) in %s on line %d
13
+
Fatal error: Class test declares abstract method foo() and must therefore be declared abstract in %s on line %d
Copy file name to clipboardExpand all lines: tests/classes/abstract_derived.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,4 @@ class derived extends base {
13
13
?>
14
14
===DONE===
15
15
--EXPECTF--
16
-
Fatal error: Class derived contains 1 abstract method and must therefore be declared abstract or implement the remaining method (derived::show) in %sabstract_derived.php on line %d
16
+
Fatal error: Class derived declares abstract method show() and must therefore be declared abstract in %sabstract_derived.php on line %d
Copy file name to clipboardExpand all lines: tests/classes/abstract_not_declared.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,4 +10,4 @@ class fail {
10
10
echo"Done\n"; // shouldn't be displayed
11
11
?>
12
12
--EXPECTF--
13
-
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining method (fail::show) in %s on line %d
13
+
Fatal error: Class fail declares abstract method show() and must therefore be declared abstract in %s on line %d
Copy file name to clipboardExpand all lines: tests/classes/abstract_redeclare.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,4 +16,4 @@ class fail extends pass {
16
16
echo"Done\n"; // Shouldn't be displayed
17
17
?>
18
18
--EXPECTF--
19
-
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining method (fail::show) in %sabstract_redeclare.php on line %d
19
+
Fatal error: Class fail declares abstract method show() and must therefore be declared abstract in %sabstract_redeclare.php on line %d
Copy file name to clipboardExpand all lines: tests/classes/abstract_static.phpt
+1-1
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,4 @@ echo "Done\n"; // shouldn't be displayed
31
31
--EXPECTF--
32
32
Call to function show()
33
33
34
-
Fatal error: Class fail contains 1 abstract method and must therefore be declared abstract or implement the remaining method (fail::func) in %sabstract_static.php(%d) : eval()'d code on line %d
34
+
Fatal error: Class fail declares abstract method func() and must therefore be declared abstract in %sabstract_static.php(%d) : eval()'d code on line %d
0 commit comments