Skip to content

Commit

Permalink
Fix phpstan error
Browse files Browse the repository at this point in the history
Remove router getRequest parameter
  • Loading branch information
kyleweishaupt committed Dec 18, 2019
1 parent 216bc08 commit b49306e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pdf/CakePdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ protected function _render()
$viewOptions[$var] = $this->{$prop};
}

$request = Router::getRequest(true);
$request = Router::getRequest();
if (!$request) {
$request = ServerRequestFactory::fromGlobals();
}
Expand Down

0 comments on commit b49306e

Please sign in to comment.