Skip to content

[stable26] add command for getting fileinfo for debugging#38005

Merged
blizzz merged 2 commits intostable26from
backport/37525/stable26
May 3, 2023
Merged

[stable26] add command for getting fileinfo for debugging#38005
blizzz merged 2 commits intostable26from
backport/37525/stable26

Conversation

@backportbot-nextcloud
Copy link

backport of #37525

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
$bucket = array_pop($parts);
$output->writeln(" bucket: " . $bucket);
if ($node instanceof \OC\Files\Node\File) {
$output->writeln(" object id: " . $storage->getURN($node->getId()));

Check notice

Code scanning / Psalm

PossiblyNullOperand

Cannot concatenate with a possibly null null|string
$output->writeln(" object id: " . $storage->getURN($node->getId()));
try {
$fh = $node->fopen('r');
if (!$fh) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction

Operand of type false is always false
$output->writeln(" object id: " . $storage->getURN($node->getId()));
try {
$fh = $node->fopen('r');
if (!$fh) {

Check notice

Code scanning / Psalm

DocblockTypeContradiction

Docblock-defined type resource for $fh is never falsy
@blizzz blizzz merged commit 511bfab into stable26 May 3, 2023
@blizzz blizzz deleted the backport/37525/stable26 branch May 3, 2023 08:38
@blizzz blizzz mentioned this pull request May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants