mirror of
https://github.com/danog/psalm-insane-comparison.git
synced 2024-11-26 12:04:46 +01:00
fix wrong class
This commit is contained in:
parent
5a1efa05d6
commit
b6f4f1c77a
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace Orklah\PsalmInsaneComparison;
|
||||
|
||||
use Orklah\PsalmInsaneComparison\Hooks\InsaneComparison;
|
||||
use Orklah\PsalmInsaneComparison\Hooks\InsaneComparisonAnalyzer;
|
||||
use SimpleXMLElement;
|
||||
use Psalm\Plugin\PluginEntryPointInterface;
|
||||
use Psalm\Plugin\RegistrationInterface;
|
||||
@ -11,8 +11,8 @@ class Plugin implements PluginEntryPointInterface
|
||||
/** @return void */
|
||||
public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config = null): void
|
||||
{
|
||||
if(class_exists(InsaneComparison::class)){
|
||||
$psalm->registerHooksFromClass(InsaneComparison::class);
|
||||
if(class_exists(InsaneComparisonAnalyzer::class)){
|
||||
$psalm->registerHooksFromClass(InsaneComparisonAnalyzer::class);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user