From 474024f9bf7ba2430079f3ab8eda8eac5c26c1a5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 13 Sep 2021 23:03:36 +0700 Subject: [PATCH] [Scoper] Fix bootstrap BackedEnum code (#877) --- build/target-repository/bootstrap.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/build/target-repository/bootstrap.php b/build/target-repository/bootstrap.php index d1d8830a3cb..09b6eed8569 100644 --- a/build/target-repository/bootstrap.php +++ b/build/target-repository/bootstrap.php @@ -55,7 +55,16 @@ if (! interface_exists('BackedEnum')) { * @since 8.1 */ interface BackedEnum extends UnitEnum { - public static function from(int|string $value): static; - public static function tryFrom(int|string $value): ?static; + /** + * @param int|string $value + * @return $this + */ + public static function from($value); + + /** + * @param int|string $value + * @return $this|null + */ + public static function tryFrom($value); } }