diff --git a/build/target-repository/bootstrap.php b/build/target-repository/bootstrap.php index 3da92efab97..1d4dbaab0c3 100644 --- a/build/target-repository/bootstrap.php +++ b/build/target-repository/bootstrap.php @@ -39,35 +39,3 @@ spl_autoload_register(function (string $class): void { } } }); - -if (! interface_exists('UnitEnum')) { - /** - * @since 8.1 - */ - interface UnitEnum - { - /** - * @return static[] - */ - public static function cases(): array; - } -} - -if (! interface_exists('BackedEnum')) { - /** - * @since 8.1 - */ - interface BackedEnum extends UnitEnum { - /** - * @param int|string $value - * @return $this - */ - public static function from($value); - - /** - * @param int|string $value - * @return $this|null - */ - public static function tryFrom($value); - } -} diff --git a/build/target-repository/stubs-rector/Internal/EnumInterfaces.php b/build/target-repository/stubs-rector/Internal/EnumInterfaces.php new file mode 100644 index 00000000000..6f613db3ae0 --- /dev/null +++ b/build/target-repository/stubs-rector/Internal/EnumInterfaces.php @@ -0,0 +1,33 @@ +