亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

artisan 測試命令不起作用,laravel 7.x

artisan 測試命令不起作用,laravel 7.x

PHP
慕村225694 2023-09-08 21:45:23
我希望你做得很好,所以我的問題是,test每當我運行命令時,我都無法運行 artisan 命令,php artisan test我收到以下錯誤   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▕老實說,我之前沒有測試過該命令是否有效,因為我升級了依賴項以使用并按照此處pestphp的安裝步驟進行操作。感謝您的回答。
查看完整描述

1 回答

?
喵喔喔

TA貢獻1735條經驗 獲得超5個贊

這是 pestphp 版本控制的問題,如此處所述。我只需更換 pestphp 和碰撞的版本

????????"nunomaduro/collision":?"v5.0.0-BETA3",
????????????????"pestphp/pest":?"^0.2.3",

????????"nunomaduro/collision":?"5.0.0-BETA2",
????????????????"pestphp/pest":?"0.2.1",


查看完整回答
反對 回復 2023-09-08
  • 1 回答
  • 0 關注
  • 118 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號