phabel/src/Target/Php73.php

29 lines
613 B
PHP

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