1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/examples/plugins/composer-based/echo-checker/PluginEntryPoint.php
orklah 6e3546d900
return types (#4311)
* return types

* remove willReturn for void methods
2021-01-29 11:39:53 +01:00

15 lines
408 B
PHP

<?php
namespace Psalm\Example\Plugin\ComposerBased;
use Psalm\Plugin;
use SimpleXMLElement;
class PluginEntryPoint implements Plugin\PluginEntryPointInterface
{
public function __invoke(Plugin\RegistrationInterface $registration, ?SimpleXMLElement $config = null): void
{
require_once __DIR__ . '/EchoChecker.php';
$registration->registerHooksFromClass(EchoChecker::class);
}
}