Trigger an E_USER_DEPRECATED notice instead of an error

This commit is contained in:
Alex Bilbie committed 2017-07-11 07:31:30 +01:00
1 parent 788ccb8605
commit 295e90c27d
1 file changed
+2 -2
+2 -2
View File
@@ -139,7 +139,7 @@ class AuthorizationServer implements EmitterAwareInterface
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 @@ class AuthorizationServer implements EmitterAwareInterface
{
if ($this->encryptionKey === null) {
// @codeCoverageIgnoreStart
error_log(self::ENCRYPTION_KEY_ERROR);
trigger_error(self::ENCRYPTION_KEY_ERROR, E_USER_DEPRECATED);
// @codeCoverageIgnoreEnd
}