Repository navigation
fix(reconciler): an offset under one of several literal keys is the value of those keys - #14646
Merged
Merged
Conversation
…alue of those keys vimeo#9714 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Behaviour change
|
Contributor
✅ Performance: unchanged · Types: decreased
How to read this table
✅ symfony: issues +6 −8Memory 3 619 → 3 619 MB (<0.1 %) · Wall 172.6 → 165.5 s (−4.1 %) Weighted 100 583 → 100 575 (−8, −0.01 %): L4 −2
Changed in place (2) @@ src/Symfony/Component/HttpClient/HttpClientTrait.php:714 @@
- PossiblyInvalidArgument: Argument 3 of preg_replace_callback expects array<array-key, float|int|string>|string, but possibly different type int|null|string provided
+ PossiblyNullArgument: Argument 3 of preg_replace_callback cannot be null, possibly null value provided
@@ src/Symfony/Component/Mime/Crypto/PgpProcess.php:50 InvalidScalarArgument @@
- Argument 1 of PgpProcess::__construct expects string, but possibly undefined bool|float|null|string provided
- Argument 2 of PgpProcess::__construct expects string, but possibly undefined bool|float|null|string provided
- Argument 3 of PgpProcess::__construct expects string, but possibly undefined bool|float|null|string provided
- Argument 4 of PgpProcess::__construct expects string, but possibly undefined bool|float|null|string provided
- Argument 5 of PgpProcess::__construct expects float|null, but possibly undefined bool|float|null|string provided
+ Argument 1 of PgpProcess::__construct expects string, but possibly undefined float|null|string provided
+ Argument 2 of PgpProcess::__construct expects string, but possibly undefined float|null|string provided
+ Argument 3 of PgpProcess::__construct expects string, but possibly undefined float|null|string provided
+ Argument 4 of PgpProcess::__construct expects string, but possibly undefined float|null|string provided
+ Argument 5 of PgpProcess::__construct expects float|null, but possibly undefined float|null|string providedRemoved (2)
✅ doctrine-orm: issues +1 −6Memory 380 → 380 MB (<0.1 %) · Wall 18.1 → 18.2 s (+0.8 %) Weighted 6 215 → 6 197 (−18, −0.29 %): L3 −4 · L6 −1
Changed in place (1) @@ src/Mapping/ClassMetadataFactory.php:531 @@
- PossiblyInvalidArgument: …<int|string, array<string, mixed>>, but possibly different type array<array-key, mixed>|bool|string provided
+ MixedArgumentTypeCoercion: …<int|string, array<string, mixed>>, but parent type array<array-key, mixed> providedRemoved (5)
✅ drupal: issues +0 −3Memory 4 844 → 4 844 MB (<0.1 %) · Wall 197.7 → 199.4 s (+0.9 %) Weighted 169 770 → 169 763 (−7, <0.01 %): L1 −1 · L3 −2
Removed (3)
✅ wordpress: issues +1 −6Memory 2 042 → 2 042 MB (<0.1 %) · Wall 172.0 → 173.5 s (+0.9 %) Weighted 678 190 → 678 178 (−12, <0.01 %): L1 −2 · L3 −2 · L4 −1
Changed in place (1) @@ src/wp-includes/ID3/module.tag.apetag.php:282 PossiblyUndefinedArrayOffset @@
- … max>, data_offset: mixed, datalength?: array<array-key, mixed>|int<0, max>|mixed|string, description?: array<array-key, mixed>|int<0, max>|mixed|string, filename: string, flags: array<array-key, mixed>, image_height?: array<array-key, mixed>|int<0, max>|mixed|string, image_mime: '', image_width?: array<array-key, mixed>|int<0, max>|mixed|string, imagetype?: array<array-key, mixed>|int<0, max>|mixed|string, offset: mixed, picturetype?: array<array-key, mixed>|int<0, max>|mixed|string}
+ … max>, data_offset: mixed, datalength?: string, description?: string, filename: string, flags: array<array-key, mixed>, image_height?: string, image_mime: '', image_width?: string, imagetype?: string, offset: mixed, picturetype?: string}Removed (5)
head 4d81dbb · base 71a650b (merge-base) · workflow run |
…shape lists is any of its values vimeo#9714 When none of several literal keys is listed by a sealed shape, the offset was left unknown (`mixed`), where master took the values of the array as for a key of no known value: monolog's `isset(self::RFC_5424_LEVELS[$level])` with `$level` one of the `Level` values got a `MixedAssignment`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Behaviour change (addition) and correction, after the perf report of the previous head:
|
# Conflicts: # tests/TypeReconciliation/IssetTest.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.
After
isset($array[$k])/!empty($array[$k])where$kis one of several literal keys,$array[$k]is every value the array can hold instead of the values under those keys.Before
After
Fixes #9714