我希望你做得很好,所以我的問題是,test每當(dāng)我運(yùn)行命令時(shí),我都無法運(yùn)行 artisan 命令,php artisan test我收到以下錯(cuò)誤 RuntimeException Running Collision ^5.0 artisan test command requires Laravel ^8.0. at D:\php-files\behzad-thingi\vendor\nunomaduro\collision\src\Adapters\Laravel\Commands\TestCommand.php:71 67▕ } 68▕ 69▕ // @phpstan-ignore-next-line 70▕ if ((int) \Illuminate\Foundation\Application::VERSION[0] < 8) { ? 71▕ throw new RuntimeException('Running Collision ^5.0 artisan test command requires Laravel ^8.0.'); 72▕ } 73▕ 74▕ $options = array_slice($_SERVER['argv'], $this->option('without-tty') ? 3 : 2); 75▕老實(shí)說,我之前沒有測試過該命令是否有效,因?yàn)槲疑壛艘蕾図?xiàng)以使用并按照此處pestphp的安裝步驟進(jìn)行操作。感謝您的回答。
1 回答

喵喔喔
TA貢獻(xiàn)1735條經(jīng)驗(yàn) 獲得超5個(gè)贊
這是 pestphp 版本控制的問題,如此處所述。我只需更換 pestphp 和碰撞的版本
????????"nunomaduro/collision":?"v5.0.0-BETA3", ????????????????"pestphp/pest":?"^0.2.3",
到
????????"nunomaduro/collision":?"5.0.0-BETA2", ????????????????"pestphp/pest":?"0.2.1",
- 1 回答
- 0 關(guān)注
- 111 瀏覽
添加回答
舉報(bào)
0/150
提交
取消