diff options
Diffstat (limited to 'Zend/tests/errmsg_038.phpt')
-rw-r--r-- | Zend/tests/errmsg_038.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_038.phpt b/Zend/tests/errmsg_038.phpt new file mode 100644 index 0000000..2927e94 --- /dev/null +++ b/Zend/tests/errmsg_038.phpt @@ -0,0 +1,13 @@ +--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 |