Skip to content

Commit 6a7f943

Browse files
authored
Merge pull request #45 from eslym/master
Fix for Issue#9 and Issue#36
2 parents 561ecb6 + 0c5b1d1 commit 6a7f943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RequestContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getContext(): ?array
5959
return [
6060
'uri' => $this->currentRequest->getUri(),
6161
'method' => $this->currentRequest->getMethod(),
62-
'controller' => $controller ? $this->cloner->cloneVar(class_basename($controller)) : $controller,
62+
'controller' => $controller ? $this->cloner->cloneVar(class_basename($controller)) : $this->cloner->cloneVar(null),
6363
'identifier' => spl_object_hash($this->currentRequest),
6464
];
6565
}

0 commit comments

Comments
 (0)