From 87b2b51093acc2c8f202fc2ce26c82602a1d0ff4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 17 Oct 2019 13:01:13 +0200 Subject: - add patch for PHP 7.4 from https://github.com/horde/Date_Parser/pull/1 - use range dependencies --- 1.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 1.patch (limited to '1.patch') diff --git a/1.patch b/1.patch new file mode 100644 index 0000000..8fc91ff --- /dev/null +++ b/1.patch @@ -0,0 +1,22 @@ +From 7575d9125f00f03b3ca644f4be6d1857f4311dd2 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Thu, 17 Oct 2019 12:39:10 +0200 +Subject: [PATCH] Fix Trying to access array offset on value of type null + +--- + lib/Horde/Date/Parser/Token.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Horde/Date/Parser/Token.php b/lib/Horde/Date/Parser/Token.php +index fcb8537..0d59994 100644 +--- a/lib/Horde/Date/Parser/Token.php ++++ b/lib/Horde/Date/Parser/Token.php +@@ -74,7 +74,7 @@ function ($t) use ($tagClass) { + } + ); + $match = array_shift($matches); +- return $match[1]; ++ return (is_array($match) ? $match[1] : null); + } + + /** -- cgit