xref: /PHP-8.4/Zend/tests/gh10377_2.phpt (revision e52684ea)
1--TEST--
2GH-10377 (Unable to have an anonymous readonly class) - usage variation: abstract modifier
3--FILE--
4<?php
5
6$x = new abstract class {};
7
8?>
9--EXPECTF--
10Fatal error: Cannot use the abstract modifier on an anonymous class in %s on line %d
11