Skip to content

Commit 00636c4

Browse files
ddeathMikk Mihkel Nurges
authored andcommitted
Fix compatibility issue with php 7.2 (#129)
1 parent 6024bb1 commit 00636c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rebing/GraphQL/GraphQLController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function query(Request $request, $schema = null)
1414

1515
// If there are multiple route params we can expect that there
1616
// will be a schema name that has to be built
17-
if (count($request->route()->parameters) > 1) {
17+
if ($request->route()->parameters && count($request->route()->parameters) > 1) {
1818
$schema = implode('/', $request->route()->parameters);
1919
}
2020

0 commit comments

Comments
 (0)