diff --git a/src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php b/src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php index ec5b633dc..f92e7f1c0 100644 --- a/src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php +++ b/src/AdapterTestUtilities/ExceptionThrowingFilesystemAdapter.php @@ -8,6 +8,7 @@ use League\Flysystem\FileAttributes; use League\Flysystem\FilesystemAdapter; use League\Flysystem\FilesystemOperationFailed; +use League\Flysystem\StorageAttributes; class ExceptionThrowingFilesystemAdapter implements FilesystemAdapter { @@ -52,6 +53,13 @@ public function fileExists(string $path): bool return $this->adapter->fileExists($path); } + public function metadata(string $path, Config $config): StorageAttributes + { + $this->throwStagedException(__METHOD__, $path); + + return $this->adapter->metadata($path); + } + public function write(string $path, string $contents, Config $config): void { $this->throwStagedException(__METHOD__, $path); diff --git a/src/Ftp/FtpAdapter.php b/src/Ftp/FtpAdapter.php index 12ae573a6..c3e06aec7 100644 --- a/src/Ftp/FtpAdapter.php +++ b/src/Ftp/FtpAdapter.php @@ -35,7 +35,6 @@ use function ftp_close; use function is_string; use function preg_match; -use function var_dump; class FtpAdapter implements FilesystemAdapter { diff --git a/src/Local/LocalFilesystemAdapter.php b/src/Local/LocalFilesystemAdapter.php index 8d786dd03..e944c22f9 100644 --- a/src/Local/LocalFilesystemAdapter.php +++ b/src/Local/LocalFilesystemAdapter.php @@ -9,7 +9,6 @@ use function sprintf; use function str_replace; use function substr; -use function var_dump; use const DIRECTORY_SEPARATOR; use const LOCK_EX; use DirectoryIterator; @@ -240,7 +239,6 @@ public function listContents(string $path, bool $deep): iterable private function mapFileInfo(SplFileInfo $fileInfo): StorageAttributes | false { $pathName = $fileInfo->getPathname(); - var_dump($fileInfo->isLink(), $this->linkHandling & self::SKIP_LINKS); if ($fileInfo->isLink()) { if ($this->linkHandling & self::SKIP_LINKS) {