From a906c45efdba3334498f41438cbf5270d451e9df Mon Sep 17 00:00:00 2001 From: Abbas Arif <43321373+buzzclue@users.noreply.github.com> Date: Wed, 23 Mar 2022 21:50:48 +0500 Subject: [PATCH] Typo $meta to $attribute $meta is null and it throws an error "Call to a member function path() on null". --- src/Driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver.php b/src/Driver.php index af14a0a..2a2ebb6 100644 --- a/src/Driver.php +++ b/src/Driver.php @@ -169,7 +169,7 @@ protected function _dirExists($path) /** @var StorageAttributes $meta */ foreach ($this->listContents($dir) as $attribute) { - if ($attribute->isDir() && $this->_basename($meta->path()) == $basename) { + if ($attribute->isDir() && $this->_basename($attribute->path()) == $basename) { return true; } }