Skip to content

Commit

Permalink
Type cast image size name to string --fixes #888
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Aug 12, 2024
1 parent 4a77fc7 commit 0bf9b2c
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 0bf9b2c

Please sign in to comment.