mirror of
https://github.com/danog/psalm-insane-comparison.git
synced 2024-11-26 20:14:46 +01:00
fix wrong class
This commit is contained in:
parent
5a1efa05d6
commit
b6f4f1c77a
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user