Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaration of Illuminate\Foundation\Application::handle incompatible on 7.0.4 #31803

Closed
vladoa opened this issue Mar 6, 2020 · 1 comment · Fixed by #31806
Closed

Declaration of Illuminate\Foundation\Application::handle incompatible on 7.0.4 #31803

vladoa opened this issue Mar 6, 2020 · 1 comment · Fixed by #31806
Labels

Comments

@vladoa
Copy link

vladoa commented Mar 6, 2020

  • Laravel Version: 7.0.4
  • PHP Version: 7.3.11
  • Database Driver & Version:

Description:

I tried putting my fresh Laravel 7 application on a live server with Envoyer. After the deployment, there is an error message when opening any screen of the app:
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 also tried PHP 7.2 and PHP 7.4.
Maybe I am doing something wrong. Please don't get upset if that is the case.

Steps To Reproduce:

Install Laravel 7.0.4 on PHP 7.3.11
Or there might be some other reason. I don't know.
There are also other people experiencing this issue:
https://laracasts.com/discuss/channels/laravel/laravel-7-error

@driesvints
Copy link
Member

Thanks for noting this. Sent in a PR here: #31806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants