-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Laravel 5.3 PHP 7.2.1 compatibility in SoftDeletes #22843
Comments
That version is no longer supported, you need to update to a newer version of Laravel |
@taylorotwell Mentioned in the docs repo that he wants 5.1 to support PHP 7.2 |
@ntzm, that’s not a helpful answer. As far as I can see there is no statement in the git read me or the main website about 5.3 no longer being supported (both happily document 5.2 onwards) Additionally, active support compared to bug fix support are two different issues. I don’t expect new features - just the existing ones to work. Note that, as in my original post, the same issue is fixed elsewhere in the version we are using, it’s a simple fix. When we can we will update, but at the moment it’s not possible. In our development roadmap. |
According to laravel-news, all support for 5.3 has long passed, even security. That's not written in stone though, so IMO, the best option would probably be a quick pull request for 5.3 as a bug-fix with an explanation. Taylor will be sure to see it then. |
I've posted a pull request here #22858 |
Fix of "count(): Parameter must be an array or an object that implements Countable" according to: laravel/framework#22843
Description:
Calling delete on a model with the
SoftDeletes
trait causes acount(NULL)
failure due to howcount()
now processes null values.Exception:
Offending code:
Suggested fix, use version from Laravel 5.5/5.6:
Steps To Reproduce:
Try something like:
The text was updated successfully, but these errors were encountered: