phabel/src/Target/Php70/ScalarTypeHintsRemover.php

24 lines
425 B
PHP
Raw Normal View History

2020-08-03 21:31:32 +02:00
<?php
namespace Phabel\Target\Php70;
use Phabel\Plugin;
use Phabel\Plugin\TypeHintStripper;
class ScalarTypeHintsRemover extends Plugin
{
/**
* Alias.
*
* @return array
*/
2020-08-09 13:49:19 +02:00
public static function runAfter(): array
2020-08-03 21:31:32 +02:00
{
return [
TypeHintStripper::class => [
'types' => ['int', 'integer', 'float', 'string', 'bool', 'boolean']
]
];
}
}