国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman1.4 新建項目完全關(guān)閉默認(rèn)路由后報錯

xiongxiong

環(huán)境php8.0 在windows下跟linux中都是這樣
在route.php
Route::any('/test', function ($request) {
return response('test');
});
Route::get('/', [\app\controller\Index::class,'index']);

Route::fallback(function () {
return json(['code' => 404, 'msg' => '404 not found']);
});

Route::disableDefaultRoute();

控制臺路由報錯
Route set to / is not callable
Route set to / is not callable
Route set to / is not callable
Route set to / is not callable
Route set to / is not callable

1359 3 0
3個回答

liziyu

關(guān)于webman 1.4,1.4會覆蓋 support/helper.php,升級前請先備份。建議先將webman 1.4試水一些非關(guān)鍵項目。重要項目等1-2個月后再上1.4。

是不是因為這個?猜的!

  • xiongxiong 2022-08-15

    helper.php就只是一些輔助函數(shù)吧 應(yīng)該是路由改了東西 沒咋看源碼

  • yzh52521 2022-08-15

    應(yīng)該是改路由源碼了,升級后我也報錯,退回上一版本正常 php8.0

mon

用的PHP8.2?

PHP8.2棄用了部分對象的調(diào)用方式,如[$class, $method]這類callable類型的

箜篌

composer require workerman/webman-framework ^v1.4.2
更新到1.4.2就好了

年代過于久遠(yuǎn),無法發(fā)表回答
??