mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-02 17:56:09 +01:00
27 lines
872 B
PHP
27 lines
872 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Psl\Integration\Psalm;
|
|
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
|
use Psalm\Plugin\RegistrationInterface;
|
|
use SimpleXMLElement;
|
|
|
|
/**
|
|
* @deprecated use `php-standard-library/psalm-plugin` package instead.
|
|
*
|
|
* @see https://github.com/php-standard-library/psalm-plugin
|
|
*/
|
|
final class Plugin implements PluginEntryPointInterface
|
|
{
|
|
public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
|
|
{
|
|
require_once __DIR__ . '/EventHandler/OptionalFunctionReturnTypeProvider.php';
|
|
require_once __DIR__ . '/EventHandler/ShapeFunctionReturnTypeProvider.php';
|
|
|
|
$registration->registerHooksFromClass(EventHandler\OptionalFunctionReturnTypeProvider::class);
|
|
$registration->registerHooksFromClass(EventHandler\ShapeFunctionReturnTypeProvider::class);
|
|
}
|
|
}
|