Repository navigation
fix(stubs): ArrayObject and ArrayIterator offsetSet() accept a null offset - #14516
Merged
Merged
Conversation
…ffset vimeo#14499 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Behaviour change
Verified: |
Contributor
✅ Performance: unchanged · Types: decreased
How to read this table
✅ symfony: issues +0 −1Memory 3 619 → 3 619 MB (<0.1 %) · Wall 292.8 → 286.3 s (−2.2 %) Weighted 100 583 → 100 577 (−6, −0.01 %): L6 −1
Removed (1)
✅ doctrine-orm: issues +0 −1Memory 380 → 380 MB (<0.1 %) · Wall 16.3 → 15.7 s (−3.9 %) Weighted 6 215 → 6 209 (−6, −0.10 %): L6 −1
Removed (1)
✅ tempest: issues +0 −1Memory 898 → 898 MB (+0.0 %) · Wall 28.7 → 28.9 s (+0.8 %) Weighted 10 567 → 10 561 (−6, −0.06 %): L6 −1
Removed (1)
head 4b8f755 · base 9bdbe63 (merge-base) · workflow run |
…hat stands for never vimeo#14499 `new ArrayObject()` binds its templates to type variables standing for `never` until something is written. Combining the param type `TKey|null` dropped such a variable, so the param became `null` and a write under a key reported `InvalidArgument: ... expects null`. Keep the variable when the bound param type is combined and expanded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Behaviour change (addition), after the perf report of the previous head:
|
…is preserved vimeo#14499 Returning the variable unchanged from TypeExpander kept the cached ids of the types holding it after its bounds grew. Rebuild it again and keep a never-bound variable in one combine helper, also when another part of the union is expanded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # stubs/CoreGenericClasses.phpstub # stubs/CoreGenericIterators.phpstub # tests/ArrayAccessTest.php
# Conflicts: # tests/ArrayAccessTest.php
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.
Appending (
$o[] = ...) to a typedArrayObjectorArrayIteratorreports a falseNullArgument.Before
After
Fixes #14499