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 Jun 5, 2024
1 parent 7e518a5 commit e8e3a28
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 e8e3a28

Please sign in to comment.