Skip to content

Document ValueError thrown by settype() since PHP 8.0#5382

Merged
cweiske merged 1 commit intophp:masterfrom
lacatoire:fix/issue-3431-settype-return-type
Mar 6, 2026
Merged

Document ValueError thrown by settype() since PHP 8.0#5382
cweiske merged 1 commit intophp:masterfrom
lacatoire:fix/issue-3431-settype-return-type

Conversation

@lacatoire
Copy link
Contributor

@lacatoire lacatoire commented Feb 18, 2026

Fixes #3431

Adds Errors/Exceptions section and changelog entry for the ValueError thrown when an invalid type is passed, since PHP 8.0.

Happy to adjust if needed.

Add Errors/Exceptions section and changelog entry.

Fixes php#3431
@cweiske cweiske merged commit 8d49e30 into php:master Mar 6, 2026
2 checks passed
@cweiske
Copy link
Contributor

cweiske commented Mar 6, 2026

Thank you!

@lacatoire lacatoire deleted the fix/issue-3431-settype-return-type branch March 6, 2026 12:09
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.

Wrong return type for settype

2 participants