24 lines
388 B
PHP
24 lines
388 B
PHP
<?php
|
|
|
|
namespace Spatie\Php7to5\NodeVisitors;
|
|
|
|
use Phabel\Plugin;
|
|
use Phabel\Plugin\TypeHintStripper;
|
|
|
|
class NullableTypeRemover extends Plugin
|
|
{
|
|
/**
|
|
* Remove nullable typehint
|
|
*
|
|
* @return array
|
|
*/
|
|
public function needs(): array
|
|
{
|
|
return [
|
|
TypeHintStripper::class => [
|
|
'nulable' => true
|
|
]
|
|
];
|
|
}
|
|
}
|