Skip to content

Commit 5310b26

Browse files
committed
Added method_exists() check.
1 parent 7d85713 commit 5310b26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Routing/Adapter/Laravel.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ protected function mergeOldRoutes($version)
119119
*/
120120
public function getRouteProperties($route, Request $request)
121121
{
122-
return [$route->uri(), $route->methods(), $route->getAction()];
122+
if (method_exists($route, 'uri') && method_exists($route, 'methods')) {
123+
return [$route->uri(), $route->methods(), $route->getAction()];
124+
}
125+
126+
return [$route->getUri(), $route->getMethods(), $route->getAction()];
123127
}
124128

125129
/**

0 commit comments

Comments
 (0)