From 7dcd9d67f19f63ce56a1f64ce7a5d752b43e04a3 Mon Sep 17 00:00:00 2001 From: UserOne-se <163652423+UserOne-se@users.noreply.github.com> Date: Sat, 16 Mar 2024 17:15:12 +0100 Subject: [PATCH] Update PluginWrapper.php Function absolutePaths() updated to not crash when null is supplied to $this->filesystem->isAbsolutePath() --- src/PluginWrapper.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/PluginWrapper.php b/src/PluginWrapper.php index c2a2cbc..1f7161d 100644 --- a/src/PluginWrapper.php +++ b/src/PluginWrapper.php @@ -187,10 +187,12 @@ protected function absolutePaths($paths) { $return = array(); foreach ($paths as $path) { - if (!$this->filesystem->isAbsolutePath($path)) { - $path = getcwd().'/'.$path; + if (!is_null($path)) { + if (!$this->filesystem->isAbsolutePath($path)) { + $path = getcwd().'/'.$path; + } + $return[] = $path; } - $return[] = $path; } return $return;