Skip to content

Commit

Permalink
refac: replace required annotation by attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
gimler committed May 29, 2024
1 parent 7688008 commit a16854b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SoapClient/SoapClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Freshcells\SoapClientBundle\Event\ResponseEvent;
use Ramsey\Uuid\Uuid;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Contracts\Service\Attribute\Required;

/**
* Class SoapClient
Expand Down Expand Up @@ -241,8 +242,8 @@ public function setMockResponses(array $mockResponses)

/**
* @param EventDispatcherInterface $dispatcher
* @required
*/
#[Required]
public function setDispatcher(EventDispatcherInterface $dispatcher)
{
$this->dispatcher = $dispatcher;
Expand Down

0 comments on commit a16854b

Please sign in to comment.