2020-08-03 21:31:32 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Spatie\Php7to5\NodeVisitors;
|
|
|
|
|
|
|
|
use Phabel\Plugin;
|
|
|
|
use Phabel\Plugin\TypeHintStripper;
|
|
|
|
|
|
|
|
class NullableTypeRemover extends Plugin
|
|
|
|
{
|
|
|
|
/**
|
2020-08-09 13:49:19 +02:00
|
|
|
* Remove nullable typehint.
|
2020-08-03 21:31:32 +02:00
|
|
|
*
|
|
|
|
* @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 => [
|
|
|
|
'nulable' => true
|
|
|
|
]
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|