Skip to content

fix(files): pass the strict flag to in_array() - #64201

Merged
solracsf merged 1 commit into
masterfrom
fix/noid/folder-in-array-strict
Sep 11, 2026
Merged

solracsf merged 1 commit into
masterfrom
fix/noid/folder-in-array-strict

Conversation

@solracsf

@solracsf solracsf commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the static-code-analysis failure every pull request currently hits:

https://github.com/nextcloud/server/actions/runs/34507108876/job/102971934630?pr=63998

The call came in with #53048 after the strict in_array() psalm rule landed, and master didn't flag it because static-code-analysis is skipped on master pushes. dirname() always returns a string, so passing true doesn't change behaviour.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

#53048 added an in_array() call without $strict after the
InArrayStrictChecker psalm rule had landed, so static analysis now fails
on every pull request. dirname() always returns a string, so strict
comparison does not change behaviour.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsf requested a review from a team as a code owner September 10, 2026 18:42
@solracsf
solracsf requested review from Altahrim, CarlSchwan, icewind1991 and salmart-dev and removed request for a team September 10, 2026 18:42
@solracsf solracsf added this to the Nextcloud 36 milestone Sep 10, 2026
@solracsf solracsf added 3. to review Waiting for reviews regression labels Sep 10, 2026
@solracsf solracsf changed the title fix(files): pass the strict flag to in_array() in getOrCreateFolder() fix(files): pass the strict flag to in_array() Sep 10, 2026
@solracsf
solracsf enabled auto-merge September 10, 2026 19:28
@solracsf
solracsf requested a review from susnux September 10, 2026 19:28
@solracsf solracsf self-assigned this Sep 11, 2026
@solracsf
solracsf merged commit c37545a into master Sep 11, 2026
192 of 195 checks passed
@solracsf
solracsf deleted the fix/noid/folder-in-array-strict branch September 11, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants