Browse Source

Visitor current peut être null

develop
Guillaume 2 years ago
parent
commit
c13fda8da2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Controller/ControllerTrait.php

+ 1
- 1
Controller/ControllerTrait.php View File

@@ -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();
}

Loading…
Cancel
Save