Skip to content

Commit

Permalink
Merge pull request #32 from 4c0n/remove-union-type
Browse files Browse the repository at this point in the history
Specify union type in phpdoc
  • Loading branch information
chrisnharvey authored Aug 24, 2022
2 parents 792b0c6 + ecf3a2a commit 0748272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SwiftAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0748272

Please sign in to comment.