Skip to content

Commit 0ca67cc

Browse files
committed
[minor] use Required attribute when possible
1 parent 27c1fa1 commit 0ca67cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/InvokableServiceCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Console\Output\OutputInterface;
1010
use Symfony\Component\Console\Style\StyleInterface;
1111
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
12+
use Symfony\Contracts\Service\Attribute\Required;
1213
use Symfony\Contracts\Service\ServiceSubscriberInterface;
1314

1415
/**
@@ -94,6 +95,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
9495
/**
9596
* @required
9697
*/
98+
#[Required]
9799
public function setInvokeContainer(ContainerInterface $container): void
98100
{
99101
$this->container = $container;

0 commit comments

Comments
 (0)