Skip to content

Commit 4a20e09

Browse files
GH-16067: test current output
So that it is clear what changes
1 parent 531b943 commit 4a20e09

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Zend/tests/anon/gh16067.phpt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--TEST--
2+
Compiler prevents explicit `abstract` methods on anonymous classes
3+
--FILE--
4+
<?php
5+
6+
$c = new class {
7+
abstract public function f();
8+
}
9+
?>
10+
--EXPECTF--
11+
Fatal error: Class class@anonymous must implement 1 abstract method (class@anonymous::f) in %s on line 3

0 commit comments

Comments
 (0)