Skip to content

Commit

Permalink
fix(FileListener): Fix psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Nov 22, 2023
1 parent 42a7cbd commit 1d92ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Listener/FileListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function handle(Event $event): void {
*/
$userIds = array_keys($accessList['users']);

if ($node->getType() === FileInfo::TYPE_FOLDER) {
if ($node instanceof File) {
$mount = $node->getMountPoint();
if ($mount->getNumericStorageId() === null) {
return;
Expand Down

0 comments on commit 1d92ff7

Please sign in to comment.