Trigger an E_USER_DEPRECATED notice instead of an error

This commit is contained in:
Alex Bilbie 2017-07-11 07:31:30 +01:00
parent 788ccb8605
commit 295e90c27d

View File

@ -139,7 +139,7 @@ class AuthorizationServer implements EmitterAwareInterface
if ($this->encryptionKey === null) { if ($this->encryptionKey === null) {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
error_log(self::ENCRYPTION_KEY_ERROR); trigger_error(self::ENCRYPTION_KEY_ERROR, E_USER_DEPRECATED);
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
} }
$grantType->setEncryptionKey($this->encryptionKey); $grantType->setEncryptionKey($this->encryptionKey);
@ -161,7 +161,7 @@ class AuthorizationServer implements EmitterAwareInterface
{ {
if ($this->encryptionKey === null) { if ($this->encryptionKey === null) {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
error_log(self::ENCRYPTION_KEY_ERROR); trigger_error(self::ENCRYPTION_KEY_ERROR, E_USER_DEPRECATED);
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
} }