Browse Source

Improve error message.

ADmad 6 years ago
parent
commit
f71bb0414e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/ServerRequest.php

+ 1 - 1
src/Http/ServerRequest.php

@@ -683,7 +683,7 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
 
             return $this->is(...$params);
         }
-        throw new BadMethodCallException(sprintf('Method %s does not exist', $name));
+        throw new BadMethodCallException(sprintf('Method "%s()" does not exist', $name));
     }
 
     /**