-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[L5.2][php7] Error with exeption #9650
Comments
Laravel 5.2 isn't supported at all yet. Sorry. |
Symfony will be fixing this in due course, but it may take until November. |
I'm actually going to keep this open so I can personally keep track of this, since this will become important in the future if not addressed before we launch 5.2. Thank you very much for reporting @Codenator81. :) |
Lol I am stupid this is Symfony issue))) I think there issue all ready ) |
Is there any chance you could paste a link here. It will be useful for anyone else testing out new stuff early, and indeed for me to check out. :) |
Had some feedback from symfony. See symfony/symfony#14086 (comment). |
Given L5.1 is LTS, the PHP 7 fixes will end up getting backported where reasonable back into 5.1. |
Yes it make sense if Laravel5.1 is LTS and PHP 7 will RC in November |
Yeh, we indent to have all currently supported Laravel versions working on all currently supported PHP versions. This means L5.1 will be working on php 5.5, 5.6, 7.0 before php 7 goes stable. |
In Symfony, we cast Throwables to FatalThrowableError: if (!$exception instanceof \Exception) {
$exception = new FatalThrowableError($exception);
} Laravel should do the same don't you think? |
That works for me. :) |
We're planning on getting 5.2 fully working on php 7, then we're going to backport what's reasonable to 5.1 after we've had time to test it for a bit. |
Ok, we've got this sorted. PHP 7 support should ship in the next 5.1 release. |
Great. ) |
@GrahamCampbell - I just got this error on Laravel 5.1.26 (LTS) running on Homestead PHP7.0.0RC5 To replicate - I was accidentally injecting a FormRequest object on one of my controller methods during a GET request (which I know I shouldnt - it was an accident). It keep throwing me the exact error above - which made it difficult to determine what was going on. So it seems the issue is not fully fixed yet? Or at least not fully backported to 5.1 |
This issue should have been fixed in 5.1+. I fixed it myself. |
Well - I'm running 5.1.26 and I got the error above - so it can still occur... |
Actually - its a slightly different error: FatalThrowableError in FlattenException.php line 76: in FlattenException.php line 76 And to cause it - I had a syntax error in my PHP code - but I couldnt work it out for ages (because the error message wasnt helpful). In my FormRequest object I had this:
Notice the missing 'commas' at the end of each row |
I've opened a seperate ticket for it - 11329 |
[Symfony\Component\Debug\Exception\FatalErrorException] |
@missael did you get this sorted? i have exactly the same issue |
This error came when I try use Mail fasade in controller
FatalErrorException in FlattenException.php line 76:
Uncaught TypeError: Argument 1 passed to Symfony\Component\Debug\Exception\FlattenException::create() must be an instance of Exception, instance of TypeError given, called in /home/alex/www/laravel.local/vendor/symfony/debug/ExceptionHandler.php on line 206 and defined in /home/alex/www/laravel.local/vendor/symfony/debug/Exception/FlattenException.php:76
Stack trace:
#0 /home/alex/www/laravel.local/vendor/symfony/debug/ExceptionHandler.php(206): Symfony\Component\Debug\Exception\FlattenException::create(Object(TypeError))
#1 /home/alex/www/laravel.local/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(93): Symfony\Component\Debug\ExceptionHandler->createResponse(Object(TypeError))
#2 /home/alex/www/laravel.local/app/Exceptions/Handler.php(42): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(TypeError))
#3 /home/alex/www/laravel.local/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(101): App\Exceptions\Handler->
As you can see not useful info what sup )
I using Laravel 5.2.x-dev
The text was updated successfully, but these errors were encountered: