Skip to content

Commit

Permalink
fix: type of getNodeInfo Changed
Browse files Browse the repository at this point in the history
Co-authored-by: Louis <louis@chmn.me>
Signed-off-by: yemkareems <yemkareems@gmail.com>
  • Loading branch information
yemkareems and artonge authored Jul 8, 2024
1 parent f71c5aa commit 60c5d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Command/ListFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function configure(): void {
->addOption("order", "ASC", InputArgument::OPTIONAL, "Order is either ASC or DESC");
}

private function getNodeInfo(File|Folder $node): array {
private function getNodeInfo(Node $node): array {

Check failure

Code scanning / Psalm

UndefinedClass Error

Class, interface or enum named OCA\Files\Command\Node does not exist

Check failure on line 71 in apps/files/lib/Command/ListFiles.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

apps/files/lib/Command/ListFiles.php:71:31: UndefinedClass: Class, interface or enum named OCA\Files\Command\Node does not exist (see https://psalm.dev/019)
$nodeInfo = [
"name" => $node->getName(),
"size" => $node->getSize() . " bytes",
Expand Down

0 comments on commit 60c5d0c

Please sign in to comment.