From 310c794845796eab02c30ade5c692338efef0451 Mon Sep 17 00:00:00 2001
From: William Desportes <williamdes@wdes.fr>
Date: Tue, 24 Dec 2024 11:30:09 +0100
Subject: [PATCH] Add a patch for PHP 8.4

---
 ...004-Replace-E_STRICT-by-E_DEPRECATED.patch | 23 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 debian/patches/0004-Replace-E_STRICT-by-E_DEPRECATED.patch

diff --git a/debian/patches/0004-Replace-E_STRICT-by-E_DEPRECATED.patch b/debian/patches/0004-Replace-E_STRICT-by-E_DEPRECATED.patch
new file mode 100644
index 0000000..c64c799
--- /dev/null
+++ b/debian/patches/0004-Replace-E_STRICT-by-E_DEPRECATED.patch
@@ -0,0 +1,23 @@
+From: William Desportes <williamdes@wdes.fr>
+Date: Tue, 24 Dec 2024 11:29:54 +0100
+Subject: Replace E_STRICT by E_DEPRECATED
+
+Origin: vendor
+Forwarded: no
+---
+ lib/functions.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/functions.php b/lib/functions.php
+index 8162408..293df6b 100644
+--- a/lib/functions.php
++++ b/lib/functions.php
+@@ -145,7 +145,7 @@ function app_error_handler($errno,$errstr,$file,$lineno) {
+ 	$errtype = '';
+ 
+ 	switch ($errno) {
+-		case E_STRICT: $errtype = 'E_STRICT'; break;
++		case E_DEPRECATED: $errtype = 'E_DEPRECATED'; break;
+ 		case E_ERROR: $errtype = 'E_ERROR'; break;
+ 		case E_WARNING: $errtype = 'E_WARNING'; break;
+ 		case E_PARSE: $errtype = 'E_PARSE'; break;
diff --git a/debian/patches/series b/debian/patches/series
index 5bf39d2..d3752f1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 Fix-dynamic-property-PHP-8.2.patch
 Update-documentation-for-Debian.patch
 Update-the-VERSION-file.patch
+0004-Replace-E_STRICT-by-E_DEPRECATED.patch
-- 
GitLab