<?php enum Foo { case CAT; final public function test(): self { return $this; } } var_dump(Foo::CAT->test());
You have javascript disabled. You will not be able to edit any code.