简体   繁体   English

Laravel 7 错误:在实时服务器上全新安装

[英]Laravel 7 Error: fresh install on live server

I have a fresh Laravel 7 app that I wanted to put on a live server.我有一个新的 Laravel 7 应用程序,我想把它放在一个实时服务器上。 There, I am getting this message:在那里,我收到此消息:

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

I tried changing the PHP version running on the server: PHP 7.2, PHP 7.3, PHP 7.4 Anyone has an idea?我尝试更改服务器上运行的 PHP 版本:PHP 7.2、PHP 7.3、PHP 7.4 有谁知道吗?

This is a bug in Laravel7这是Laravel7一个错误

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

There is already a pull request in place:已经有一个pull request

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM