2021-02-09 21:15:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-02-16 02:17:35 +01:00
|
|
|
namespace Psl\Integration\Psalm;
|
2021-02-09 21:15:06 +01:00
|
|
|
|
|
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
|
|
|
use Psalm\Plugin\RegistrationInterface;
|
|
|
|
use SimpleXMLElement;
|
|
|
|
|
|
|
|
final class Plugin implements PluginEntryPointInterface
|
|
|
|
{
|
|
|
|
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
|
|
|
|
{
|
|
|
|
require_once __DIR__ . '/EventHandler/ShapeFunctionReturnTypeProvider.php';
|
|
|
|
|
|
|
|
$registration->registerHooksFromClass(EventHandler\ShapeFunctionReturnTypeProvider::class);
|
|
|
|
}
|
|
|
|
}
|