From 0bf9b2c3a4a152ad959a84541f24b94e32af6481 Mon Sep 17 00:00:00 2001 From: Opeyemi Ibrahim Date: Mon, 12 Aug 2024 10:37:30 +0100 Subject: [PATCH] Type cast image size name to string --fixes #888 --- classes/Optimization/Process/AbstractProcess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Optimization/Process/AbstractProcess.php b/classes/Optimization/Process/AbstractProcess.php index bbe47b48..4da7931c 100644 --- a/classes/Optimization/Process/AbstractProcess.php +++ b/classes/Optimization/Process/AbstractProcess.php @@ -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 ) {