We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237b189 commit 147a07eCopy full SHA for 147a07e
1 file changed
Classes/Service/RedirectDemandService.php
@@ -15,7 +15,7 @@ class RedirectDemandService
15
{
16
protected array $data = [];
17
18
- protected Demand $demand;
+ protected ?Demand $demand = null;
19
20
private RedirectRepository $redirectRepository;
21
private EventDispatcherInterface $eventDispatcher;
@@ -36,12 +36,12 @@ public function setData(array $data): void
36
$this->data = $data;
37
}
38
39
- public function getDemand(): Demand
+ public function getDemand(): ?Demand
40
41
return $this->demand;
42
43
44
- public function setDemand(Demand $demand): void
+ public function setDemand(?Demand $demand): void
45
46
$this->demand = $demand;
47
@@ -107,4 +107,4 @@ public function preparePagination(Demand $demand = null): array
107
108
return $pagination;
109
110
-}
+}
0 commit comments