Closed vmanthos closed 1 year ago
Using PHP 8.2, can see the following error with the steps below:
[12-Jul-2023 08:37:58 UTC] PHP Deprecated: Return type of Imagify_Files_Recursive_Iterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/new.rocketlabsqa.ovh/htdocs/wp-content/plugins/imagify/inc/classes/class-imagify-files-recursive-iterator.php on line 55
steps:
1- from the settings page, add the theme to the optimization process
2- from bulk optimization, select only custom folders and click imagify all
Notes:
Can see the following error with the following steps:
1- Select folders for optimization at the settings page
2- Visit https://new.rocketlabsqa.ovh/wp-admin/upload.php?page=imagify-files
3- Click scan your selected folders
and check logs
[13-Sep-2023 09:29:51 UTC] PHP Deprecated: Return type of Imagify_Files_Recursive_Iterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/new.rocketlabsqa.ovh/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-recursive-iterator.php on line 55
Note: using PHP 8.2.10 and imagify on 2.1.1
Before submitting an issue please check that you’ve completed the following steps:
2.1.1
Describe the bug
The following appears in the
debug.log
(PHP 8.1):To Reproduce
Steps to reproduce the behavior:
/wp-admin/options-general.php?page=imagify
)debug.log
Expected behavior
No deprecation notices should be there in the
debug.log
.Screenshots
N/A
Additional context
N/A
Backlog Grooming (for WP Media dev team use only)