mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 01:37:21 +01:00
chore: style changes
This commit is contained in:
@ -29,6 +29,9 @@ final class BootSubscribers implements Bootstrapper
|
||||
Subscribers\EnsureTeamCityEnabled::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* Creates a new Subscriber instance.
|
||||
*/
|
||||
public function __construct(
|
||||
private readonly Container $container,
|
||||
) {
|
||||
@ -40,8 +43,10 @@ final class BootSubscribers implements Bootstrapper
|
||||
public function boot(): void
|
||||
{
|
||||
foreach (self::SUBSCRIBERS as $subscriber) {
|
||||
/** @var Subscriber $instance */
|
||||
$instance = $this->container->get($subscriber);
|
||||
|
||||
assert($instance instanceof Subscriber);
|
||||
|
||||
Event\Facade::registerSubscriber(
|
||||
$instance
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user