Skip to content

Commit

Permalink
Trigger an E_USER_DEPRECATED notice instead of an error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbilbie committed Jul 11, 2017
1 parent 788ccb8 commit 295e90c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AuthorizationServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function enableGrantType(GrantTypeInterface $grantType, \DateInterval $ac

if ($this->encryptionKey === null) {
// @codeCoverageIgnoreStart
error_log(self::ENCRYPTION_KEY_ERROR);
trigger_error(self::ENCRYPTION_KEY_ERROR, E_USER_DEPRECATED);
// @codeCoverageIgnoreEnd
}
$grantType->setEncryptionKey($this->encryptionKey);
Expand All @@ -161,7 +161,7 @@ public function validateAuthorizationRequest(ServerRequestInterface $request)
{
if ($this->encryptionKey === null) {
// @codeCoverageIgnoreStart
error_log(self::ENCRYPTION_KEY_ERROR);
trigger_error(self::ENCRYPTION_KEY_ERROR, E_USER_DEPRECATED);
// @codeCoverageIgnoreEnd
}

Expand Down

0 comments on commit 295e90c

Please sign in to comment.