endtoend-test-psl/integration/Psalm/Plugin.php

22 lines
727 B
PHP
Raw Normal View History

2021-02-09 21:15:06 +01:00
<?php
declare(strict_types=1);
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
{
2021-03-06 10:10:57 +01:00
require_once __DIR__ . '/EventHandler/OptionalFunctionReturnTypeProvider.php';
2021-02-09 21:15:06 +01:00
require_once __DIR__ . '/EventHandler/ShapeFunctionReturnTypeProvider.php';
2021-03-06 10:10:57 +01:00
$registration->registerHooksFromClass(EventHandler\OptionalFunctionReturnTypeProvider::class);
2021-02-09 21:15:06 +01:00
$registration->registerHooksFromClass(EventHandler\ShapeFunctionReturnTypeProvider::class);
}
}