Skip to content

Rename Container::getUnsafeValues() to getUntrustedValues()#182

Merged
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
jtojnar:untrusted-values
Feb 9, 2026
Merged

Rename Container::getUnsafeValues() to getUntrustedValues()#182
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
jtojnar:untrusted-values

Conversation

@jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Dec 14, 2025

Mirroring the upstream change from 3.1.10: nette/forms@fb2df3b

The new method also makes the returnType argument optional, defaulting to ArrayHash.

Also add handling of returnType taking class-string.

Finally, add tests based on getValues().

Mirroring the upstream change from 3.1.10: nette/forms@fb2df3b

The new method also makes the `returnType` argument optional, defaulting to `ArrayHash`.

Also add handling of `returnType` taking `class-string`.

Finally, add tests based on `getValues()`.
@ondrejmirtes ondrejmirtes merged commit adfdaa3 into phpstan:2.0.x Feb 9, 2026
31 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@jtojnar jtojnar deleted the untrusted-values branch February 9, 2026 14:36
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.

2 participants