0

我有一个新的 Laravel 7 应用程序,我想将它放在实时服务器上。在那里,我收到了这条消息:

PHP Fatal error: Declaration of Illuminate\Foundation\Application::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MASTER_REQUEST, $catch = true) must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Request $request, int $type = self::MASTER_REQUEST, bool $catch = true) in /usr/www/users/myuser/mydomain.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 29

我尝试更改服务器上运行的 PHP 版本:PHP 7.2、PHP 7.3、PHP 7.4 有人知道吗?

4

1 回答 1

0

这是一个错误Laravel7

https://github.com/laravel/framework/issues/31803

已经有一个pull request

https://github.com/laravel/framework/pull/31806

于 2020-03-07T10:56:41.950 回答