Repository navigation
fix(context): a variable first assigned in a possibly skipped branch keeps its type - #14376
Merged
Merged
Conversation
…keeps its type vimeo#13995 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
Author
|
Behaviour change
|
Contributor
✅ Performance: unchanged · Types: decreased
How to read this table
✅ laravel: issues +0 −1Memory 1 765 → 1 765 MB (+0.0 %) · Wall 73.6 → 73.7 s (+0.1 %) Weighted 53 212 → 53 211 (−1, <0.01 %): L1 −1
Removed (1)
✅ symfony: issues +12 −33Memory 3 605 → 3 605 MB (<0.1 %) · Wall 256.6 → 259.1 s (+1.0 %) Weighted 98 716 → 98 709 (−7, −0.01 %): L1 −30 · L2 +4 · L3 +5
Added (12)
Removed (33)
✅ drupal: issues +1 −2Memory 4 850 → 4 850 MB (<0.1 %) · Wall 242.1 → 250.0 s (+3.3 %) Weighted 169 327 → 169 326 (−1, <0.01 %): L1 −1
Added (1)
Removed (2)
head d2b3ae2 · base 78d192b (merge-base) · workflow run |
…defined vimeo#13995 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Collaborator
|
Thanks @jirkace! |
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.
A variable first assigned in the right operand of
&&loses its type outside anifcondition: it is reported as undefined and typedmixed, although it is only possibly undefined.Before
After
The same applies to a variable assigned in the possibly skipped operand of any
&&outside a condition; the||form is not covered.Fixes #13995