@@ -94,7 +94,7 @@ trait ControllerTrait | |||
return $this->get(Security::class)->getUser(); | |||
} | |||
public function getVisitorCurrent(): VisitorInterface | |||
public function getVisitorCurrent(): ?VisitorInterface | |||
{ | |||
return $this->getVisitorContainer()->getResolver()->getCurrent(); | |||
} |