Skip to content

Commit

Permalink
change variable assignment for $cacheFile in Router
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Feb 21, 2019
1 parent c86ac97 commit 7bf8823
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Slim/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ public function getBasePath()
*/
public function setCacheFile($cacheFile)
{
$this->cacheFile = $cacheFile;

if (!is_string($cacheFile) && $cacheFile !== false) {
throw new InvalidArgumentException('Router cache file must be a string or false');
}
Expand All @@ -148,6 +146,7 @@ public function setCacheFile($cacheFile)
);
}

$this->cacheFile = $cacheFile;
return $this;
}

Expand Down

0 comments on commit 7bf8823

Please sign in to comment.