fix wrong class

This commit is contained in:
orklah 2020-12-04 08:38:19 +01:00
parent 5a1efa05d6
commit b6f4f1c77a

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Orklah\PsalmInsaneComparison; namespace Orklah\PsalmInsaneComparison;
use Orklah\PsalmInsaneComparison\Hooks\InsaneComparison; use Orklah\PsalmInsaneComparison\Hooks\InsaneComparisonAnalyzer;
use SimpleXMLElement; use SimpleXMLElement;
use Psalm\Plugin\PluginEntryPointInterface; use Psalm\Plugin\PluginEntryPointInterface;
use Psalm\Plugin\RegistrationInterface; use Psalm\Plugin\RegistrationInterface;
@ -11,8 +11,8 @@ class Plugin implements PluginEntryPointInterface
/** @return void */ /** @return void */
public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config = null): void public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config = null): void
{ {
if(class_exists(InsaneComparison::class)){ if(class_exists(InsaneComparisonAnalyzer::class)){
$psalm->registerHooksFromClass(InsaneComparison::class); $psalm->registerHooksFromClass(InsaneComparisonAnalyzer::class);
} }
} }
} }