-
-
Notifications
You must be signed in to change notification settings - Fork 75
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: symfony/serializer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bd395bb
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: symfony/serializer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 006fd51
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 12 commits
- 7 files changed
- 6 contributors
Commits on Mar 10, 2026
-
Add a test for
selfconstructor promoted parameter- Introduce `DummyWithSelfConstructorPromotedParameter` test class to validate the normalization/denormalization.
Configuration menu - View commit details
-
Copy full SHA for 6620ed4 - Browse repository at this point
Copy the full SHA 6620ed4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2602f28 - Browse repository at this point
Copy the full SHA 2602f28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 508be04 - Browse repository at this point
Copy the full SHA 508be04View commit details
Commits on Mar 24, 2026
-
Configuration menu - View commit details
-
Copy full SHA for d155c56 - Browse repository at this point
Copy the full SHA d155c56View commit details
Commits on Mar 26, 2026
-
[Serializer] Fix can*() prefix support in GetSetMethodNormalizer
isGetMethod() recognizes can*() as a valid getter prefix, but isAllowedAttribute() and getAttributeValue() only support get*, is* and has*. This causes can*()-derived attributes to be silently dropped during normalization.
Configuration menu - View commit details
-
Copy full SHA for 172f10a - Browse repository at this point
Copy the full SHA 172f10aView commit details
Commits on Mar 30, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 6df2763 - Browse repository at this point
Copy the full SHA 6df2763View commit details -
* 6.4: [Ldap] Make the Adapter resettable [Serializer] Remove needless line in changelog [MonologBridge] Fix ConsoleHandler losing output after nested command terminates [Cache] Fix tests [EventDispatcher] Fix memory leak in TraceableEventDispatcher for long-running processes [TwigBridge][Mime] Add missing tests [TwigBridge] Refactor image method to use DataPart content ID [Cache] Fix undefined property access [Console] Fix performance regression in OutputFormatter for ASCII content [Serializer] Fix can*() prefix support in GetSetMethodNormalizer [Cache] Fix Psr16Cache::getMultiple() returning ValueWrapper with TagAwareAdapter # Conflicts: # src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php # src/Symfony/Bridge/Monolog/Tests/Handler/ConsoleHandlerTest.php # src/Symfony/Bridge/Twig/Mime/WrappedTemplatedEmail.php # src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php # src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/AdapterTest.php
Configuration menu - View commit details
-
Copy full SHA for 1670285 - Browse repository at this point
Copy the full SHA 1670285View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c668b2 - Browse repository at this point
Copy the full SHA 7c668b2View commit details -
bug #63782 [Serializer] Fix mixed-typed constructor parameters overri…
…ding getter-inferred type (pcescon) This PR was merged into the 7.4 branch. Discussion ---------- [Serializer] Fix mixed-typed constructor parameters overriding getter-inferred type | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #63779 | License | MIT This PR fixes a regression introduced in #63401 (7.4.6) where `mixed`-typed constructor parameters incorrectly override the richer type inferred by the property type extractor. When a DTO has a constructor parameter typed `mixed` but a getter that returns a specific type (e.g., `?MyEntity`), the property type extractor correctly identifies the type from the getter. However, the condition introduced in #63401 was treating `mixed` as a meaningful type constraint and overriding the extractor's type with `Type::mixed()`. ```php class MyDTO { public function __construct( private mixed $entity = null, ) {} public function getEntity(): ?MyEntity { return $this->entity; } } ``` With a custom denormalizer registered for `MyEntity`, `denormalize(['entity' => 42], MyDTO::class)` would **no longer invoke the custom denormalizer** in 7.4.6+. The raw integer `42` was passed to the constructor instead of a `MyEntity` instance. The fix treats `mixed` as carrying no useful type constraint (same as `null`) across all three code paths in `denormalizeParameter()`: - **`ReflectionTypeResolver` path**: exclude `TypeIdentifier::MIXED` in `isSatisfiedBy()` - **`ReflectionNamedType` fallback path**: skip override when `TypeIdentifier::MIXED` - **Legacy `getTypes()` BC path**: skip the whole override block when the parameter type is `mixed` Commits ------- cbb9df00fdf [Serializer] Fix mixed-typed constructor parameters overriding getter-inferred typeConfiguration menu - View commit details
-
Copy full SHA for 714e9d2 - Browse repository at this point
Copy the full SHA 714e9d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b8a7ba - Browse repository at this point
Copy the full SHA 9b8a7baView commit details -
bug #63817 [Serializer] Fix denormalization of nested array with key …
…types (mtarld) This PR was merged into the 6.4 branch. Discussion ---------- [Serializer] Fix denormalization of nested array with key types | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #60036 | License | MIT The nested-array branch in `AbstractObjectNormalizer::validateAndDenormalize` did not propagate `key_type`/`value_type` into the context, unlike the non-nested branch. This caused the parent collection's `key_type` to leak into child properties. The fix propagates these context keys in `AbstractObjectNormalizer` and advances them to the next nesting level in `ArrayDenormalizer`. Commits ------- 15a12e0a6ea [Serializer] Fix denormalization of nested array with key types
Configuration menu - View commit details
-
Copy full SHA for 90e4e01 - Browse repository at this point
Copy the full SHA 90e4e01View commit details -
* 6.4: [DependencyInjection] Fix rejecting inline services in parameters section [Serializer] Fix denormalization of nested array with key types [VarDumper] Ensure that tests are resilient when the Xdebug file link format is defined
Configuration menu - View commit details
-
Copy full SHA for 006fd51 - Browse repository at this point
Copy the full SHA 006fd51View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff bd395bb...006fd51