From 8bababa369392573aa67353d26ca680af43306f9 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 30 Nov 2022 10:30:34 +0100 Subject: [PATCH] MDL-76494 libs: patch Box::Spout for PHP 8.1 - calling basename on null --- lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php b/lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php index 5deb8d93f2631..08d475dbe901f 100644 --- a/lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php +++ b/lib/spout/src/Spout/Common/Helper/GlobalFunctionsHelper.php @@ -243,10 +243,10 @@ public function is_readable($fileName) * @see basename() * * @param string $path - * @param string|null $suffix + * @param string $suffix * @return string */ - public function basename($path, $suffix = null) + public function basename($path, $suffix = '') { return \basename($path, $suffix); }