-
Notifications
You must be signed in to change notification settings - Fork 892
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
PHP Deprecated: As of 4.5.0, using newQuery() is deprecated #2251
Comments
Might also be related to You can backport this to v0.14 one if needed. |
To address cakephp/migrations#651 and this issue, we'd need to backport #2242 to v0.13. There is also the changes to Granted, given that |
Why not backport to 0.14 only? Shouldn't be any need to still use 0.13 afaik |
Biggest reason would be to help cakephp/migrations@v3 users, but if you don't think you'd want those methods in phinx proper for that (or fine with just having those users be stuck with the deprecation warnings), then yeah, less of a reason to backport that far unless @malle-pietje provides a compelling reason on why they might be stuck on 0.13. |
Thanks for all the feedback! I'm stuck with 0.13 because a large number of deployments of our application are still on PHP 7.4, we could move to 0.14. |
I checked and the reason we had to pin to version 0.13 has been fixed so we should be able to move to 0.14. That means a backport would be welcome for us and any other projects that need to support PHP 7.4. I know, PHP 7.4 is EOL but you don't want to know how many servers are still running it... Forcing them to upgrade is going to put extra load on our team 😉 |
0.14 backport is fine, even supporting 7.4 here totally OK, no worries. Thats still the min version for the Cake4 series. |
I'll see whether I can find the time to look into the backport in the short term. If someone who's more familiar with the package is willing to look into this, that's obviously more than welcome! 🤞 |
Same for me. At the moment we have to support PHP 7.4 because it is part of Ubuntu 20.04 which is still in support until Apr 2025. Even if PHP 7.4 itself is EOL. |
My solution is to install the dependent version in advance . Define the following content in the require field of your composer.json
run It can work normally until your project can be migrated to the latest phinx If you are unsure of the dependencies, you can use the following instructions to view them
|
Running a migration with Phinx v 0.13.4 I get this error message:
(the paths above have been sanitized a bit)
I believe the triggering migration code (sanitized a bit) is this:
I also noticed the same error was submitted as an issue in the CakePHP repo:
cakephp/migrations#651
Is there anything I can do to prevent this deprecation error message from appearing?
The text was updated successfully, but these errors were encountered: