mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Fixes EncryptionException::forNoHandlerAvailable() handler parameter call
This commit is contained in:
parent
6af3481345
commit
bbea2f316e
@ -87,6 +87,13 @@ class Encryption
|
||||
'OpenSSL',
|
||||
];
|
||||
|
||||
/**
|
||||
* Handlers that are to be installed
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $handlers = [];
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
@ -115,7 +122,7 @@ class Encryption
|
||||
{
|
||||
// this should never happen in travis-ci
|
||||
// @codeCoverageIgnoreStart
|
||||
throw EncryptionException::forNoHandlerAvailable($this->driver);
|
||||
throw EncryptionException::forNoHandlerAvailable('OpenSSL');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
}
|
||||
|
@ -14,9 +14,9 @@ class EncryptionException extends \RuntimeException implements ExceptionInterfac
|
||||
return new static(lang('Encryption.noDriverRequested'));
|
||||
}
|
||||
|
||||
public static function forNoHandlerAvailable()
|
||||
public static function forNoHandlerAvailable(string $handler)
|
||||
{
|
||||
return new static(lang('Encryption.noHandlerAvailable'));
|
||||
return new static(lang('Encryption.noHandlerAvailable', [$handler]));
|
||||
}
|
||||
|
||||
public static function forUnKnownHandler(string $driver = null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user