Skip to content

Commit 35638e4

Browse files
authored
Merge pull request barryvdh#992 from chrypro/patch-1
Make sure controller action is string before using strpos
2 parents 17c5521 + 3128abb commit 35638e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/RouteCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function getRouteInformation($route)
5858
$result = array_merge($result, $action);
5959

6060

61-
if (isset($action['controller']) && strpos($action['controller'], '@') !== false) {
61+
if (isset($action['controller']) && is_string($action['controller']) && strpos($action['controller'], '@') !== false) {
6262
list($controller, $method) = explode('@', $action['controller']);
6363
if(class_exists($controller) && method_exists($controller, $method)) {
6464
$reflector = new \ReflectionMethod($controller, $method);

0 commit comments

Comments
 (0)