mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修复 PHP8.4 报错问题。
PHP 8.4: 隐式 nullable 参数声明弃用
This commit is contained in:
@@ -74,7 +74,7 @@ class App
|
||||
* @return Response
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function run(Request $request = null)
|
||||
public static function run(?Request $request = null)
|
||||
{
|
||||
$request = is_null($request) ? Request::instance() : $request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user