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

28 lines
455 B
PHP

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