phabel/src/Target/Php70/ScalarTypeHints.php

28 lines
487 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;
2020-09-05 22:35:30 +02:00
/**
* @author Daniil Gentili <daniil@daniil.it>
* @license MIT
*/
2020-10-04 19:58:02 +02:00
class ScalarTypeHints extends Plugin
2020-08-03 21:31:32 +02:00
{
/**
* 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']
]
];
}
}