Skip to content

Commit d35a834

Browse files
author
Fabio Piro
committed
Removed constraints for __sleep
1 parent 1add163 commit d35a834

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Minimalcode/Enumeration/AbstractEnum.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,6 @@ final private function __clone()
234234
throw new LogicException('Enums are not cloneable');
235235
}
236236

237-
/**
238-
* @throws LogicException Enums are not serializable because instances are implemented as singletons
239-
*/
240-
final public function __sleep()
241-
{
242-
throw new LogicException('Enums are not serializable');
243-
}
244-
245237
/**
246238
* @throws LogicException Enums are not serializable because instances are implemented as singletons
247239
*/

0 commit comments

Comments
 (0)