File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,17 @@ final public function __sleep()
96
96
throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
97
97
}
98
98
99
+ /**
100
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
101
+ *
102
+ * @return array<string, mixed>
103
+ * @psalm-return never-return
104
+ */
105
+ public function __serialize (): array
106
+ {
107
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
108
+ }
109
+
99
110
/**
100
111
* @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
101
112
*
@@ -106,6 +117,17 @@ final public function __wakeup()
106
117
throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
107
118
}
108
119
120
+ /**
121
+ * @throws LogicException Serialization is not supported by default in this pseudo-enum implementation
122
+ *
123
+ * @param array<string, mixed> $data
124
+ * @psalm-return never-return
125
+ */
126
+ public function __unserialize (array $ data ): void
127
+ {
128
+ throw new LogicException ('Serialization is not supported by default in this pseudo-enum implementation ' );
129
+ }
130
+
109
131
/**
110
132
* Get the value of the enumerator
111
133
*
You can’t perform that action at this time.
0 commit comments