From 011311c5cdd891b1ff5f855d25780f1e820d8cfc Mon Sep 17 00:00:00 2001 From: chengwei Date: Tue, 24 Sep 2024 16:14:23 +0800 Subject: [PATCH] fixed: PHP 8.2,PHP Fatal error: Type of Workbunny\WebmanSharedCache\Commands\WorkbunnyWebmanSharedCacheEnable::$defaultName must not be defined (as in class Workbunny\WebmanSharedCache\Commands\AbstractCommand) in /app/vendor/workbunny/webman-shared-cache/src/Commands/WorkbunnyWebmanSharedCacheEnable.php on line 11 --- src/Commands/WorkbunnyWebmanSharedCacheClean.php | 4 ++-- src/Commands/WorkbunnyWebmanSharedCacheEnable.php | 4 ++-- src/Commands/WorkbunnyWebmanSharedCacheHRecycle.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Commands/WorkbunnyWebmanSharedCacheClean.php b/src/Commands/WorkbunnyWebmanSharedCacheClean.php index a521b95..6704bc8 100644 --- a/src/Commands/WorkbunnyWebmanSharedCacheClean.php +++ b/src/Commands/WorkbunnyWebmanSharedCacheClean.php @@ -10,8 +10,8 @@ class WorkbunnyWebmanSharedCacheClean extends AbstractCommand { - protected static string $defaultName = 'workbunny:shared-cache-clean'; - protected static string $defaultDescription = 'Remove all workbunny/webman-shared-cache caches. '; + protected static $defaultName = 'workbunny:shared-cache-clean'; + protected static $defaultDescription = 'Remove all workbunny/webman-shared-cache caches. '; /** * @return void diff --git a/src/Commands/WorkbunnyWebmanSharedCacheEnable.php b/src/Commands/WorkbunnyWebmanSharedCacheEnable.php index 1c81871..78d8b60 100644 --- a/src/Commands/WorkbunnyWebmanSharedCacheEnable.php +++ b/src/Commands/WorkbunnyWebmanSharedCacheEnable.php @@ -10,8 +10,8 @@ class WorkbunnyWebmanSharedCacheEnable extends AbstractCommand { - protected static string $defaultName = 'workbunny:shared-cache-enable'; - protected static string $defaultDescription = 'Enable APCu cache with specified settings. '; + protected static $defaultName = 'workbunny:shared-cache-enable'; + protected static $defaultDescription = 'Enable APCu cache with specified settings. '; /** * @return void diff --git a/src/Commands/WorkbunnyWebmanSharedCacheHRecycle.php b/src/Commands/WorkbunnyWebmanSharedCacheHRecycle.php index 11c72cd..780c786 100644 --- a/src/Commands/WorkbunnyWebmanSharedCacheHRecycle.php +++ b/src/Commands/WorkbunnyWebmanSharedCacheHRecycle.php @@ -10,8 +10,8 @@ class WorkbunnyWebmanSharedCacheHRecycle extends AbstractCommand { - protected static string $defaultName = 'workbunny:shared-cache-hrecycle'; - protected static string $defaultDescription = 'Manually recycle expired hashKeys. '; + protected static $defaultName = 'workbunny:shared-cache-hrecycle'; + protected static $defaultDescription = 'Manually recycle expired hashKeys. '; /** * @return void