Skip to content

Allow FILTER_THROW_ON_FAILURE in $options of filter_var() and filter_input() - #6513

Merged
ondrejmirtes merged 1 commit into
2.2.xfrom
filter-throw-on-failure-allowed-constant
Sep 22, 2026
Merged

ondrejmirtes merged 1 commit into
2.2.xfrom
filter-throw-on-failure-allowed-constant

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

FILTER_THROW_ON_FAILURE (PHP 8.5) was missing from the allowed $options constants of filter_var() and filter_input(), so passing it was reported as argument.invalidConstant. This is the second error in the snippet from phpstan/phpstan#15007; the prefixed exception class is fixed in #6512.

Split out of #6112.

Closes phpstan/phpstan#15007

🤖 Generated with Claude Code

https://claude.ai/code/session_01SCH8hvECi7zaEUr1Get7sG

…filter_input()`

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SCH8hvECi7zaEUr1Get7sG
@ondrejmirtes
ondrejmirtes merged commit a3ff956 into 2.2.x Sep 22, 2026
241 of 244 checks passed
@ondrejmirtes
ondrejmirtes deleted the filter-throw-on-failure-allowed-constant branch September 22, 2026 09: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.

1 participant