Skip to content

Commit

Permalink
Make new constructor argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Sep 8, 2024
1 parent 668aafb commit 1cc3154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventListener/TracingRequestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
final class TracingRequestListener extends AbstractTracingRequestListener
{
/**
* @var RequestFetcherInterface
* @var RequestFetcherInterface|null
*/
private $requestFetcher;

public function __construct(HubInterface $hub, RequestFetcherInterface $requestFetcher)
public function __construct(HubInterface $hub, ?RequestFetcherInterface $requestFetcher = null)
{
parent::__construct($hub);

Expand Down

0 comments on commit 1cc3154

Please sign in to comment.