Skip to content

Commit

Permalink
Closes #734: Deprecated notice Imagify_Files_Iterator::accept() (#748)
Browse files Browse the repository at this point in the history
Co-authored-by: Gael Robin <“[email protected]”>
  • Loading branch information
Miraeld and Gael Robin authored Sep 29, 2023
1 parent 41c64f2 commit cfe6f77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/classes/class-imagify-files-iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct( $iterator, $include_folders = true ) {
*
* @return bool Returns whether the current element of the iterator is acceptable through this filter.
*/
public function accept() {
public function accept(): bool {
static $extensions, $has_extension_method;

$file_path = $this->current()->getPathname();
Expand Down
2 changes: 1 addition & 1 deletion inc/classes/class-imagify-files-recursive-iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct( $iterator ) {
*
* @return bool Returns whether the current element of the iterator is acceptable through this filter.
*/
public function accept() {
public function accept(): bool {
static $extensions, $has_extension_method;

$file_path = $this->current()->getPathname();
Expand Down

0 comments on commit cfe6f77

Please sign in to comment.