Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

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: d84f0b7
Choose a base ref
...
head repository: symfony/serializer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 91b01d6
Choose a head ref
  • 11 commits
  • 16 files changed
  • 7 contributors

Commits on Jun 30, 2025

  1. 4 Configuration menu
    Copy the full SHA
    5f76164 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2025

  1. Configuration menu
    Copy the full SHA
    c1daeed View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2025

  1. Fix php.net links

    benjaminpick authored and nicolas-grekas committed Jul 7, 2025
    Configuration menu
    Copy the full SHA
    b6650fa View commit details
    Browse the repository at this point in the history
  2. Merge branch '6.4' into 7.2

    * 6.4:
      Fix php.net links
      [DoctrineBridge] Restore compatibility with Doctrine ODM by validating $class object type
      [FrameworkBundle] Add functional tests for the `ContainerLintCommand` command
      Fix precision loss when rounding large integers in `NumberToLocalizedStringTransformer`
    nicolas-grekas committed Jul 7, 2025
    Configuration menu
    Copy the full SHA
    f90d9d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2645d1 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2025

  1. bug #61028 [Serializer] Fix readonly property initialization from i…

    …ncorrect scope (santysisi)
    
    This PR was merged into the 6.4 branch.
    
    Discussion
    ----------
    
    [Serializer] Fix `readonly` property initialization from incorrect scope
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 6.4
    | Bug fix?      | yes
    | New feature?  | no
    | Deprecations? | no
    | Issues        | Fix #60846
    | License       | MIT
    
    Readonly properties couldn't be initialized during denormalization due to scope restrictions. This change checks if a property is `readonly` and uninitialized, if so, it sets the value using the declaring class's scope.
    
    Also added a safety check to throw a `LogicException` if a `readonly` property is already initialized, to avoid accidental mutation.
    
    Commits
    -------
    
    79c2ea6 [Serializer] Fix readonly property initialization from incorrect scope
    nicolas-grekas committed Jul 9, 2025
    Configuration menu
    Copy the full SHA
    49a1d99 View commit details
    Browse the repository at this point in the history
  2. Merge branch '6.4' into 7.2

    * 6.4:
      Fix typo
      [VarExporter] Dump implicit-nullable types as explicit to prevent the corresponding deprecation
      [Serializer] Fix readonly property initialization from incorrect scope
      Update BrevoRequestParser.php
    nicolas-grekas committed Jul 9, 2025
    Configuration menu
    Copy the full SHA
    daca531 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2025

  1. CS fixes

    nicolas-grekas committed Jul 10, 2025
    Configuration menu
    Copy the full SHA
    c01c719 View commit details
    Browse the repository at this point in the history
  2. Merge branch '6.4' into 7.2

    * 6.4:
      -
      CS fixes
    nicolas-grekas committed Jul 10, 2025
    Configuration menu
    Copy the full SHA
    5c7f310 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2025

  1. Configuration menu
    Copy the full SHA
    75aee5d View commit details
    Browse the repository at this point in the history
  2. bug #60296 [Serializer] Handle invalid mapping type property type (Ko…

    …rvinSzanto)
    
    This PR was squashed before being merged into the 7.2 branch.
    
    Discussion
    ----------
    
    [Serializer] Handle invalid mapping type property type
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 7.2
    | Bug fix?      | yes
    | New feature?  | no
    | Deprecations? | no
    | Issues        |
    | License       | MIT
    
    When using `#[MapRequestPayload]` along with a type that uses a `#[DescriminatorMap]` it's possible for a user to craft a payload that triggers a `TypeError` by passing the wrong type for the "type" property.
    
    For example, a class that has:
    ```php
    #[DiscriminatorMap('field', ['a' => AController::class, 'b' => BController::class])]
    ```
    and a request comes in with:
    ```
    Content-Type: application/json
    
    {"field":{}}
    ```
    
    will trigger a 500 because `AbstractObjectNormalizer` doesn't validate the field type before passing it to `->getClassForType` which typehints for string.
    
    This PR adds a conditional that filters anything other than strings or objects that have a __toString method.
    
    Commits
    -------
    
    6ab0182 [Serializer] Handle invalid mapping type property type
    fabpot committed Jul 26, 2025
    Configuration menu
    Copy the full SHA
    91b01d6 View commit details
    Browse the repository at this point in the history
Loading