Skip to content

Commit

Permalink
Fix message in test
Browse files Browse the repository at this point in the history
Looks like I did not "git add" the message update.

Also drop the now dead ZEND_ENUM_PROPERTY_ERROR() macro while
here.
  • Loading branch information
nikic committed Aug 13, 2021
1 parent caefc6a commit a027247
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Zend/tests/enum/no-write-properties-cache-slot.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ var_dump(Test::A->name);
?>
--EXPECT--
string(1) "A"
Enum properties are immutable
Cannot modify readonly property Test::$name
string(1) "A"
3 changes: 0 additions & 3 deletions Zend/zend_enum.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
#include "zend_enum_arginfo.h"
#include "zend_interfaces.h"

#define ZEND_ENUM_PROPERTY_ERROR() \
zend_throw_error(NULL, "Enum properties are immutable")

#define ZEND_ENUM_DISALLOW_MAGIC_METHOD(propertyName, methodName) \
do { \
if (ce->propertyName) { \
Expand Down

0 comments on commit a027247

Please sign in to comment.