Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 3, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #37525

$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