From ecf3a2a8be0ad48354581ea9d435ef37995523e3 Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Mon, 15 Aug 2022 13:15:06 +0200 Subject: [PATCH] Specify union type in phpdoc --- src/SwiftAdapter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SwiftAdapter.php b/src/SwiftAdapter.php index e08dfd9..a7de05b 100644 --- a/src/SwiftAdapter.php +++ b/src/SwiftAdapter.php @@ -344,7 +344,10 @@ protected function getObject(string $path): StorageObject return $object; } - protected function normalizeObject(StorageObject $object): FileAttributes|DirectoryAttributes + /** + * @return FileAttributes|DirectoryAttributes + */ + protected function normalizeObject(StorageObject $object) { $name = $this->prefixer->stripDirectoryPrefix($object->name);