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";
    }
}