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