Skip to content

[stable33] fix(UserConfig): cast getTypedValue() result to string in getValueBool()#60333

Open
backportbot[bot] wants to merge 1 commit into
stable33from
backport/59646/stable33
Open

[stable33] fix(UserConfig): cast getTypedValue() result to string in getValueBool()#60333
backportbot[bot] wants to merge 1 commit into
stable33from
backport/59646/stable33

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 12, 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 12, 2026 16:25
@backportbot backportbot Bot requested review from nickvergessen and susnux May 12, 2026 16:25
@backportbot backportbot Bot added 3. to review Waiting for reviews feedback-requested labels May 12, 2026
@backportbot backportbot Bot added this to the Nextcloud 33.0.4 milestone May 12, 2026
@backportbot backportbot Bot requested review from ArtificialOwl, icewind1991, leftybournes and provokateurin and removed request for a team May 12, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants