從 "workerman/webman-framework": "^1.6.6",
到 1.6.9
執(zhí)行 composer update 后提示:
PHP Fatal error: Cannot redeclare run_path() (previously declared in /Users/lzy/website/huashi/vendor/workerman/webman-framework/src/support/helpers.php:58) in /Users/lzy/website/huashi/support/helpers.php on line 47
function run_path(string $path = ''): string
{
static $runPath = '';
if (!$runPath) {
$runPath = is_phar() ? dirname(Phar::running(false)) : BASE_PATH;
}
return path_combine($runPath, $path);
}
MacOS php8.2
"workerman/webman-framework": "^1.6.6",
1.6.9
應(yīng)該怎樣才以平滑升級(jí)呢?看文檔說(shuō)support/helpers.php 移動(dòng)到vendor/workerman/webman-framework/src/support下
下,直接將support/helpers.php
刪除,也不行,也有報(bào)錯(cuò)。