mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
41dfd36407
* [PHPStan] Update to PHPStan 0.12.99 * add BackedEnum to stub * final touch: comment * final touch: move to next if * final touch: clean up
16 lines
274 B
PHP
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;
|
|
}
|