Skip to content

Conversation

@icewind1991
Copy link
Member

Otherwise the metadata ends up being an array with just the name set.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Nov 14, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Nov 14, 2024
@icewind1991 icewind1991 requested review from a team, Altahrim, provokateurin and yemkareems and removed request for a team November 14, 2024 16:24
@provokateurin
Copy link
Member

Why is this bad?

@icewind1991
Copy link
Member Author

Why is this bad?

Any code using this will assume that a non-null result contains the expected set of metadata, not just a name

@provokateurin
Copy link
Member

I see. I also forgot that setting a key on null actually turns it into an array... PHP is fun

@come-nc come-nc merged commit 0729e26 into master Dec 3, 2024
188 checks passed
@come-nc come-nc deleted the encoding-wrapper-metadata branch December 3, 2024 20:47
@skjnldsv skjnldsv mentioned this pull request Jan 7, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants