xref: /PHP-8.1/Zend/tests/errmsg_038.phpt (revision a5360e80)
1--TEST--
2errmsg: properties cannot be final
3--FILE--
4<?php
5
6class test {
7    final $var = 1;
8}
9
10echo "Done\n";
11?>
12--EXPECTF--
13Fatal error: Cannot declare property test::$var final, the final modifier is allowed only for methods, classes, and class constants in %s on line %d
14