Skip to content

Commit

Permalink
Don't enforce namespace builtin functions to allow for mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Oct 3, 2018
1 parent 1af2ddd commit 8819941
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .php_cs.dist
Expand Up @@ -26,7 +26,6 @@ return \PhpCsFixer\Config::create()
'declare_strict_types' => true,
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'native_function_invocation' => true,
'no_php4_constructor' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/UrlSigner.php
Expand Up @@ -128,7 +128,7 @@ private function addExpiration(array &$params, ?\DateTimeInterface $expiration =
private function checkExpiration(array $params): bool
{
// Check expiration date.
return !isset($params[$this->expirationParam]) || $params[$this->expirationParam] > \time();
return !isset($params[$this->expirationParam]) || $params[$this->expirationParam] > time();
}

/**
Expand Down

0 comments on commit 8819941

Please sign in to comment.