Skip to content

Commit f409d24

Browse files
committed
Fixed Controller name when it's a Closure
1 parent b4b91ad commit f409d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Intouch/LaravelNewrelic/LumenNewrelicMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function getRoute()
6666
*/
6767
protected function getController()
6868
{
69-
return $this->getRouteObject()['action']['uses'];
69+
return isset($this->getRouteObject()['action']['uses']) ? $this->getRouteObject()['action']['uses'] : 'Closure';
7070
}
7171

7272
/**

0 commit comments

Comments
 (0)