Skip to content

[stable32] fix(UserConfig): cast getTypedValue() result to string in getValueBool()#60532

Merged
skjnldsv merged 1 commit into
stable32from
backport/59646/stable32
May 26, 2026
Merged

[stable32] fix(UserConfig): cast getTypedValue() result to string in getValueBool()#60532
skjnldsv merged 1 commit into
stable32from
backport/59646/stable32

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 19, 2026

Backport of PR #59646

PHP 8.4 made passing non-strings to strtolower() a fatal TypeError.
getTypedValue() can return a non-string under certain conditions, causing
the strtolower() call to throw. The (string) cast guards against this.

Signed-off-by: There Is No TIme <37583483+thereisnotime@users.noreply.github.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@backportbot backportbot Bot requested a review from a team as a code owner May 19, 2026 12:40
@backportbot backportbot Bot requested review from Altahrim, CarlSchwan, leftybournes, nickvergessen, salmart-dev and susnux and removed request for a team May 19, 2026 12:40
@backportbot backportbot Bot added 3. to review Waiting for reviews feedback-requested labels May 19, 2026
@backportbot backportbot Bot added this to the Nextcloud 32.0.10 milestone May 19, 2026
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 22, 2026
@skjnldsv skjnldsv merged commit 839c9fb into stable32 May 26, 2026
217 of 227 checks passed
@skjnldsv skjnldsv deleted the backport/59646/stable32 branch May 26, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants