From e2915c356aa6602a43121f656df5fcf5d8df6b63 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Sun, 9 Jul 2023 12:32:51 -0400 Subject: [PATCH] - Fixed the APCu error message when it is not enabled. --- composer.json | 2 +- src/ApcuCache.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f08e070..74f153d 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Dave Mc Nicoll", - "email": "mcndave@gmail.com" + "email": "info@mcnd.ca" } ], "require": { diff --git a/src/ApcuCache.php b/src/ApcuCache.php index c160875..7bbadd3 100644 --- a/src/ApcuCache.php +++ b/src/ApcuCache.php @@ -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); }