rector/stubs/Php/BackedEnum.php
Abdul Malik Ikhsan 41dfd36407
[PHPStan] Update to PHPStan 0.12.99 (#874)
* [PHPStan] Update to PHPStan 0.12.99

* add BackedEnum to stub

* final touch: comment

* final touch: move to next if

* final touch: clean up
2021-09-13 20:27:39 +07:00

16 lines
274 B
PHP

<?php
declare(strict_types=1);
if (interface_exists('BackedEnum')) {
return;
}
/**
* @since 8.1
*/
interface BackedEnum extends UnitEnum {
public static function from(int|string $value): static;
public static function tryFrom(int|string $value): ?static;
}