rector/packages/VersionBonding/Contract/MinPhpVersionInterface.php
Tomas Votruba 1127b0c4e2 Updated Rector to commit bc9d2d48d5c7bd9fe011377e46b0dca464c8dceb
bc9d2d48d5 [DX] Add MissedRectorDueVersionChecker (#465)
2021-07-21 09:35:57 +00:00

24 lines
737 B
PHP

<?php
declare (strict_types=1);
namespace Rector\VersionBonding\Contract;
use Rector\Core\Contract\Rector\RectorInterface;
use Rector\Core\ValueObject\PhpVersion;
/**
* Can be implemented by @see RectorInterface
* All rules that do not meet this PHP version will not be run and user will be warned about it.
* They can either:
* - exclude rule,
* - bump PHP version in composer.json or
* - use Option::PHP_VERSION_FEATURES parameter in rector.php
*/
interface MinPhpVersionInterface
{
/**
* @todo upgrade to Enum and return of Enum object in the future.
* Requires refactoring of PhpVersion and PhpVersionFeatures object at the same time.
*/
public function provideMinPhpVersion() : int;
}