mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 08:49:52 +01:00
19a1005bc3
Fixes vimeo/psalm#8889 Additionally this fixes case-sensitivity of MethodSignatureMustOmitReturnType issue Fixes vimeo/psalm#8888
274 B
274 B
InvalidEnumMethod
Enums may not define most of the magic methods like __get
, __toString
, etc.
<?php
enum Status: string {
case Open = 'open';
case Closed = 'closed';
public function __toString(): string {
return "SomeStatus";
}
}