Hi,
I found this issue related to the Enum and interface:
<?php
declare(strict_types=1);
namespace Devsense\Builtin;
interface MyEnumInterface
{
public static function from(int|string $value): self;
public static function tryFrom(int|string $value): ?self;
}
enum MyEnum implements MyEnumInterface
{
case A;
case B;
public const string C = 'c';
public function myMethod()
{
return null;
}
}
This allow to enforce the builtin enum methods via interface.
Thank you for the fix.