summaryrefslogtreecommitdiff
path: root/Zend/tests/enum/no-name-property.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/enum/no-name-property.phpt')
-rw-r--r--Zend/tests/enum/no-name-property.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/enum/no-name-property.phpt b/Zend/tests/enum/no-name-property.phpt
new file mode 100644
index 0000000000..a565c08e83
--- /dev/null
+++ b/Zend/tests/enum/no-name-property.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Enum disallows name property
+--FILE--
+<?php
+
+enum Foo {
+ public string $name;
+}
+
+?>
+--EXPECTF--
+Fatal error: Enums may not include properties in %s on line %d