From 55b4a5eb63b12e16d9f832782339fc3520bbffd9 Mon Sep 17 00:00:00 2001
From: Yonas Habteab <yonas.habteab@icinga.com>
Date: Thu, 17 Aug 2023 14:39:34 +0200
Subject: [PATCH] StaticController: Pass only strings to `str_pad` as first
 argument

---
 application/controllers/StaticController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/StaticController.php b/application/controllers/StaticController.php
index 6e434766f..4e4260d2b 100644
--- a/application/controllers/StaticController.php
+++ b/application/controllers/StaticController.php
@@ -91,7 +91,7 @@ class StaticController extends Controller
         }
 
         $s = stat($filePath);
-        $eTag = sprintf('%x-%x-%x', $s['ino'], $s['size'], (float) str_pad($s['mtime'], 16, '0'));
+        $eTag = sprintf('%x-%x-%x', $s['ino'], $s['size'], (float) str_pad((string) $s['mtime'], 16, '0'));
 
         $this->getResponse()->setHeader(
             'Cache-Control',