File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -87,25 +87,23 @@ final public function __clone()
87
87
}
88
88
89
89
/**
90
- * @throws LogicException Enums are not serializable
91
- * because instances are implemented as singletons
90
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
92
91
*
93
92
* @psalm-return never-return
94
93
*/
95
94
final public function __sleep ()
96
95
{
97
- throw new LogicException ('Enums are not serializable ' );
96
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
98
97
}
99
98
100
99
/**
101
- * @throws LogicException Enums are not serializable
102
- * because instances are implemented as singletons
100
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
103
101
*
104
102
* @psalm-return never-return
105
103
*/
106
104
final public function __wakeup ()
107
105
{
108
- throw new LogicException ('Enums are not serializable ' );
106
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
109
107
}
110
108
111
109
/**
You can’t perform that action at this time.
0 commit comments