phabel/src/Target/Php70/ScalarTypeHints.php

28 lines
487 B
PHP

<?php
namespace Phabel\Target\Php70;
use Phabel\Plugin;
use Phabel\Plugin\TypeHintStripper;
/**
* @author Daniil Gentili <daniil@daniil.it>
* @license MIT
*/
class ScalarTypeHints extends Plugin
{
/**
* Alias.
*
* @return array
*/
public static function runAfter(): array
{
return [
TypeHintStripper::class => [
'types' => ['int', 'integer', 'float', 'string', 'bool', 'boolean']
]
];
}
}