mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-11-30 04:39:48 +01:00
20 lines
537 B
PHP
20 lines
537 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Integration\Psalm;
|
|
|
|
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);
|
|
}
|
|
}
|