mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
14 lines
243 B
PHP
14 lines
243 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 in %s on line %d
|