Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
psalm false positive
Signed-off-by: Dariusz Olszewski <[email protected]>
  • Loading branch information
starypatyk committed Jul 14, 2023
commit 2987c0d290c5e4b535b1f4173c3ca57c3b0fc6c4
2 changes: 2 additions & 0 deletions lib/private/Files/Cache/QuerySearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ private function checkStorageAndPathFilter(ISearchOperator $operator, array &$st
$a = $operator->getArguments()[0];
$b = $operator->getArguments()[1];
if ($this->isCompareEqual($a, "storage") && $this->isCompareEqual($b, "path")) {
/** @psalm-suppress UndefinedInterfaceMethod */
$storage = $a->getValue();
/** @psalm-suppress UndefinedInterfaceMethod */
$path = $b->getValue();
\OC::$server->getLogger()->debug("QuerySearchHelper::checkStorageAndPathFilter: storage=" . $storage . " " . "path=" . $path);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\OC::$server->getLogger()->debug("QuerySearchHelper::checkStorageAndPathFilter: storage=" . $storage . " " . "path=" . $path);
$this->logger->debug("QuerySearchHelper::checkStorageAndPathFilter: storage=" . $storage . " " . "path=" . $path);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to remove the logging. This was useful during development, quite unlikely to be useful in the future. Removed in f86dab9

$storageToPathsMap[$storage][] = $path;
Expand Down