- Fixed the APCu error message when it is not enabled.
This commit is contained in:
parent
28a4065a69
commit
e2915c356a
|
@ -6,7 +6,7 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Dave Mc Nicoll",
|
||||
"email": "mcndave@gmail.com"
|
||||
"email": "info@mcnd.ca"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
|
|
@ -22,7 +22,7 @@ class ApcuCache implements CacheInterface
|
|||
) {
|
||||
if (! apcu_enabled() ) {
|
||||
throw new class extends \Exception implements CacheException{
|
||||
public function __construct(string $message = "APCu extension is required to operate this class.", int $code = 0, ? \Throwable $previous = null)
|
||||
public function __construct(string $message = "APCu extension is required to operate this class. If you operate this script from the CLI, use make sure apc.enable_cli is enabled in your php.ini (or set by your server).", int $code = 0, ? \Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue