phabel/src/Target/Php71/NullableType.php
2020-09-05 22:35:30 +02:00

28 lines
454 B
PHP

<?php
namespace Phabel\Target\Php71;
use Phabel\Plugin;
use Phabel\Plugin\TypeHintStripper;
/**
* @author Daniil Gentili <daniil@daniil.it>
* @license MIT
*/
class NullableType extends Plugin
{
/**
* Remove nullable typehint.
*
* @return array
*/
public static function runAfter(): array
{
return [
TypeHintStripper::class => [
'nullable' => true
]
];
}
}