1--TEST-- 2Compiler 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-- 11Fatal error: Anonymous class method f() must not be abstract in %s on line 4 12