Make restore.php PHP 7.4 compatible #25801
Pull Request for Issue #25800 .
Summary of Changes
update should work with any issue or/notice warning for 7.4
deprecation on php 7.4
The title says this PR is to make restore.php compatible with php7.4. Which implies that without this PR restore.php will not work with 7.4
Am I missing something here. I thought deprecated in 7.4 meant it will now generate a deprecation warning - which is not the same as not working.
PS 7.4 is not scheduled for release until Nov 28 iirc
A deprecation warning means more or less that the code should not longer be used and should be changed and depending of your error reporting this could lead to an upgrade joomla upgrade error if the json response adds deprecation notices.
That's the reason I choose the title in the original issue. As developer you should take deprecation warnings as serious as fatal errors because sooner or later they lead to a fatal error.
There is no reason to wait till php 7.4 is released to patching this syntax. The 7.4 will not be in 3.9.11 and 3.9.12 comes in September so people have 2-3 month before php 7.4 is released and can update to have a nice working cms even on php 7.4.