Skip to content

Commit

Permalink
Closes #888 Fatal error when having image size with integer name (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal authored Sep 30, 2024
1 parent 59710b7 commit 045f9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@ public function is_full_next_gen() {

$keys = array_keys( $sizes );
$non_next_gen_keys = array_values(array_filter($keys, function ( $key ) {
return strpos( $key, $this->format ) === false;
return strpos( (string) $key, $this->format ) === false;
}));

return array_reduce($non_next_gen_keys, function ( $is_fully, $key ) use ( $sizes ) {
Expand Down

0 comments on commit 045f9f7

Please sign in to comment.