Update PhpStorm stubs - #6440
Merged
Merged
Conversation
PhpStorm stubs now declare @throws \Exception on ReflectionClassConstant::__construct. Mirror the ReflectionProperty extension so that constructing it for a known class constant is not treated as throwing. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2hMwFhyMX7JHn6oVKrTPD
PhpStorm stubs now declare @throws \ValueError on trigger_error(), which replaced the never-returning "may throw Throwable" treatment of E_USER_ERROR and the implicit throw point of the other levels. Keep both, and report ValueError only for an invalid error level on PHP 8. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2hMwFhyMX7JHn6oVKrTPD
…ement Errors (ValueError, TypeError, DivisionByZeroError, ...) signal programmer mistakes, nobody calls an otherwise pure expression just to have one thrown. Explicit throw points whose type is entirely a subtype of Error therefore no longer prevent the NoopExpressionNode, so sprintf(), strpos(), intdiv(), $a / $b and similar on a separate line are reported again after PhpStorm stubs added @throws \ValueError to them. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W2hMwFhyMX7JHn6oVKrTPD
ondrejmirtes
force-pushed
the
create-pull-request/patch-iuyiloj
branch
from
September 14, 2026 11:13
08c8e57 to
40a4b94
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update PhpStorm stubs