mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
10f2966dcb
* return types * remove willReturn for void methods
15 lines
408 B
PHP
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);
|
|
}
|
|
}
|