From e90982d51ffe32b068f85dc5d578144ba0e67b51 Mon Sep 17 00:00:00 2001 From: Ziggizag Date: Wed, 15 Oct 2025 16:06:22 +0200 Subject: [PATCH] Update UploadImageBehavior.php Fixed is_file(): Passing null to parameter filename of type string is deprecated. --- src/UploadImageBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UploadImageBehavior.php b/src/UploadImageBehavior.php index 4a9e48a..4baa6ac 100644 --- a/src/UploadImageBehavior.php +++ b/src/UploadImageBehavior.php @@ -133,7 +133,7 @@ protected function afterUpload() protected function createThumbs() { $path = $this->getUploadPath($this->attribute); - if (!is_file($path)) { + if (!is_string($path) || !is_file($path)) { return; }