Skip to content

Commit

Permalink
Fix phpmd on default arguments using null
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Dec 9, 2019
1 parent 463bc49 commit 7f0bfcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REVISION.md
Expand Up @@ -15,7 +15,7 @@ v2.0.x (2019-11-21)

* Upgrade to phpunit 8 (and rewrite some testcases).
* Add support to use handlers as a class implementing __invoke.
* Add route handler support for isInvocableClass and handleAsInvocableClass.
* Add route handler support for isInvocableClass and handleAsInvocableClass (without support for taking arguments).



Expand Down
8 changes: 4 additions & 4 deletions src/Route/RouteHandler.php
Expand Up @@ -31,8 +31,8 @@ class RouteHandler
* @return mixed as the result from the route handler.
*/
public function handle(
string $method = null,
string $path = null,
?string $method,
?string $path,
$action,
array $arguments = [],
ContainerInterface $di = null
Expand Down Expand Up @@ -224,8 +224,8 @@ protected function handleAsInvocableClass(string $class)
* @return array with callable details.
*/
protected function isControllerAction(
string $method = null,
string $path = null,
?string $method,
?string $path,
string $class
) {
$method = ucfirst(strtolower($method));
Expand Down

0 comments on commit 7f0bfcc

Please sign in to comment.