mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
chore: static checks
This commit is contained in:
@ -46,11 +46,7 @@ final class BootSubscribers implements Bootstrapper
|
||||
|
||||
assert($instance instanceof Subscriber);
|
||||
|
||||
if (method_exists(Event\Facade::class, 'instance')) { // @phpstan-ignore-line
|
||||
Event\Facade::instance()->registerSubscriber($instance);
|
||||
} else {
|
||||
Event\Facade::registerSubscriber($instance); // @phpstan-ignore-line
|
||||
}
|
||||
method_exists(Event\Facade::class, 'instance') ? Event\Facade::instance()->registerSubscriber($instance) : Event\Facade::registerSubscriber($instance); // @phpstan-ignore-line
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user