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-05 14:52:49 +02:00
|
|
|
public static function needs(): array
|
2020-08-03 21:31:32 +02:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
TypeHintStripper::class => [
|
|
|
|
'types' => ['int', 'integer', 'float', 'string', 'bool', 'boolean']
|
|
|
|
]
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|