Skip to content

Commit

Permalink
Add null safety for phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
mapogolions committed Aug 16, 2019
1 parent 1edc849 commit 4ddb0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Routing/Route.php
Expand Up @@ -304,7 +304,7 @@ public function addMiddleware(MiddlewareInterface $middleware): RouteInterface
*/
public function prepare(array $arguments): RouteInterface
{
$this->arguments = array_replace($this->savedArguments, $arguments);
$this->arguments = array_replace($this->savedArguments, $arguments) ?? [];
return $this;
}

Expand Down

0 comments on commit 4ddb0a5

Please sign in to comment.