phabel/src/Target/Php72.php

32 lines
704 B
PHP

<?php
namespace Phabel\Target;
use Phabel\Plugin;
use Phabel\Target\Php72\IssetExpressionFixer;
use Phabel\Target\Php72\NestedExpressionFixer;
use Phabel\Target\Php72\ObjectTypeHintReplacer;
/**
* Makes changes necessary to polyfill PHP 7.2 and run on PHP 7.1 and below.
*
* @author Daniil Gentili <daniil@daniil.it>
* @license MIT
*/
class Php72 extends Plugin
{
public static function composerRequires(): array
{
return ['symfony/polyfill-php72' => '*'];
}
public static function runWithAfter(): array
{
return [
IssetExpressionFixer::class,
NestedExpressionFixer::class,
ObjectTypeHintReplacer::class
];
}
}