Skip to content

Commit

Permalink
Specify union type in phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
4c0n committed Aug 15, 2022
1 parent 792b0c6 commit ecf3a2a
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 ecf3a2a

Please sign in to comment.