From 295e90c27d4b9f27e0bd24ff013ea0630b74bbc7 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 11 Jul 2017 07:31:30 +0100 Subject: [PATCH] Trigger an E_USER_DEPRECATED notice instead of an error --- src/AuthorizationServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index a298944f6..ac55a47cf 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -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); @@ -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 }