mirror of https://github.com/rectorphp/rector.git
[Scoper] Fix bootstrap BackedEnum code (#877)
This commit is contained in:
parent
fa63510c6f
commit
474024f9bf
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue