Browse Source

Fix call to undefined method forceRootUrl in lumen

Calls to undefined methods are a subclass of `\Error` in PHP 7
Jan-Hendrik Frintrop 6 years ago
parent
commit
d51f8f42bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Commands/GenerateDocumentation.php

+ 1 - 1
src/Commands/GenerateDocumentation.php

@@ -50,7 +50,7 @@ class GenerateDocumentation extends Command
     {
         try {
             URL::forceRootUrl(config('app.url'));
-        } catch (\Exception $e) {
+        } catch (\Error $e) {
             echo "Warning: Couldn't force base url as Lumen currently doesn't have the forceRootUrl method.\n";
             echo "You should probably double check URLs in your generated documentation.\n";
         }