php-src/Zend/tests/errmsg_038.phpt
2018-10-14 12:07:20 -03:00

14 lines
254 B
PHP

--TEST--
errmsg: properties cannot be final
--FILE--
<?php
class test {
final $var = 1;
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot declare property test::$var final, the final modifier is allowed only for methods and classes in %s on line %d