From 4aea12b2365e6e08be8d415e8d40f066fd7c7521 Mon Sep 17 00:00:00 2001 From: Lennart Van Vaerenbergh <23978-lennartvv@users.noreply.drupalcode.org> Date: Wed, 8 Nov 2023 15:17:08 +0100 Subject: [PATCH] Issue #3399820 by Fernly: mb_strtolower passing null is deprecated --- src/Plugin/Condition/RequestPathInclexcl.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Plugin/Condition/RequestPathInclexcl.php b/src/Plugin/Condition/RequestPathInclexcl.php index 6dee000..e56f766 100644 --- a/src/Plugin/Condition/RequestPathInclexcl.php +++ b/src/Plugin/Condition/RequestPathInclexcl.php @@ -87,6 +87,10 @@ class RequestPathInclexcl extends RequestPath { * {@inheritdoc} */ public function evaluate(): bool { + if (!isset($this->configuration['pages']) || NULL === $this->configuration['pages']) { + return TRUE; + } + // Convert path to lowercase. This allows comparison of the same path // with different case. Ex: /Page, /page, /PAGE. $pages = mb_strtolower($this->configuration['pages']); -- GitLab