mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
chore: uses instance method of facade
This commit is contained in:
@ -45,7 +45,7 @@ final class BootSubscribers implements Bootstrapper
|
|||||||
|
|
||||||
assert($instance instanceof Subscriber);
|
assert($instance instanceof Subscriber);
|
||||||
|
|
||||||
method_exists(Event\Facade::class, 'instance') ? Event\Facade::instance()->registerSubscriber($instance) : Event\Facade::registerSubscriber($instance); // @phpstan-ignore-line
|
Event\Facade::instance()->registerSubscriber($instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -237,8 +237,7 @@ final class TeamCityLogger
|
|||||||
new TestExecutionFinishedSubscriber($this),
|
new TestExecutionFinishedSubscriber($this),
|
||||||
];
|
];
|
||||||
|
|
||||||
// @phpstan-ignore-next-line
|
Facade::instance()->registerSubscribers(...$subscribers);
|
||||||
method_exists(Facade::class, 'instance') ? Facade::instance()->registerSubscribers(...$subscribers) : Facade::registerSubscribers(...$subscribers);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setFlowId(): void
|
private function setFlowId(): void
|
||||||
|
|||||||
@ -115,8 +115,7 @@ final class WrapperRunner implements RunnerInterface
|
|||||||
|
|
||||||
TestResultFacade::init();
|
TestResultFacade::init();
|
||||||
|
|
||||||
// @phpstan-ignore-next-line
|
EventFacade::instance()->seal();
|
||||||
method_exists(EventFacade::class, 'instance') ? EventFacade::instance()->seal() : EventFacade::seal();
|
|
||||||
|
|
||||||
$suiteLoader = new SuiteLoader($this->options, $this->output, $this->codeCoverageFilterRegistry);
|
$suiteLoader = new SuiteLoader($this->options, $this->output, $this->codeCoverageFilterRegistry);
|
||||||
$this->pending = $this->getTestFiles($suiteLoader);
|
$this->pending = $this->getTestFiles($suiteLoader);
|
||||||
|
|||||||
Reference in New Issue
Block a user