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/yaml Loading
base: v7.0.7
Choose a base ref
...
head repository: symfony/yaml Loading
compare: v7.1.0
Choose a head ref
  • 10 commits
  • 10 files changed
  • 7 contributors

Commits on Nov 17, 2023

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

Commits on Dec 18, 2023

  1. Code updates

    javiereguiluz authored and nicolas-grekas committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    2c98dad View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2023

  1. [Tests] Streamline

    OskarStark authored and nicolas-grekas committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    5d2b2a5 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2024

  1. Merge branch '7.0' into 7.1

    * 7.0:
      List CS fix in .git-blame-ignore-revs
      Fix implicitly-required parameters
      minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench)
      Fix bad merge
      List CS fix in .git-blame-ignore-revs
      Fix implicitly-required parameters
      List CS fix in .git-blame-ignore-revs
      Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
      [Messenger][AmazonSqs] Allow async-aws/sqs version 2
    nicolas-grekas committed Jan 23, 2024
    Configuration menu
    Copy the full SHA
    16eb674 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2024

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

Commits on Feb 3, 2024

  1. feature #52230 [Yaml] Allow to get all the enum cases (phansys)

    This PR was merged into the 7.1 branch.
    
    Discussion
    ----------
    
    [Yaml] Allow to get all the enum cases
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 7.1
    | Bug fix?      | no
    | New feature?  | yes
    | Deprecations? | no
    | Issues        | n/a
    | License       | MIT
    
    <!--
    Replace this notice by a description of your feature/bugfix.
    This will help reviewers and should be a good start for the documentation.
    
    Additionally (see https://symfony.com/releases):
     - Always add tests and ensure they pass.
     - Bug fixes must be submitted against the lowest maintained branch where they apply
       (lowest branches are regularly merged to upper ones so they get the fixes too).
     - Features and deprecations must be submitted against the latest branch.
     - For new features, provide some code snippets to help understand usage.
     - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
     - Never break backward compatibility (see https://symfony.com/bc).
    -->
    
    With this addition, the `!php/enum` syntax is allowed to expose an array with all the enum cases (the result from [`UnitEnum::cases()`](https://www.php.net/manual/en/unitenum.cases.php)). This is useful for cases like `choices` option from the `Choice` validation constraint:
    
    **BEFORE**:
    ```yaml
    App\Entity\User:
        properties:
            status:
                - Choice:
                    choices:
                        - !php/enum 'App\Entity\Enum\UserStatus::Enabled'
                        - !php/enum 'App\Entity\Enum\UserStatus::Disabled'
                        - !php/enum 'App\Entity\Enum\UserStatus::Blocked'
    ```
    
    **AFTER**:
    ```yaml
    App\Entity\User:
        properties:
            status:
                - Choice:
                    choices: !php/enum 'App\Entity\Enum\UserStatus'
    ```
    
    Prior to the support for enumerations, this was allowed by array constants:
    
    ```yaml
    App\Entity\User:
        properties:
            status:
                - Choice:
                    choices: !php/const 'App\Entity\User::AVAILABLE_STATUSES'
    ```
    
    Commits
    -------
    
    3286539bef [Yaml] Allow Yaml component to get all the enum cases
    fabpot committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    7fc548d View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

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

Commits on Apr 1, 2024

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

Commits on Apr 18, 2024

  1. Merge branch '7.0' into 7.1

    * 7.0:
      Auto-close PRs on subtree-splits
      review German translation
    nicolas-grekas committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    c1e0024 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2024

  1. Merge branch '7.0' into 7.1

    * 7.0: (22 commits)
      fix merge
      [AssetMapper] Check asset/vendor directory is writable
      detect wrong e-mail validation modes
      detect wrong usages of minMessage/maxMessage in options
      [Security] Remove workflow from empty folder
      read form values using the chain data accessor
      [Validator] Review Bulgarian (bg) translation
      Reviewed italian translation
      Fix french translation
      call substr() with integer offsets
      [Finder] Also consider .git inside the basedir of in() directory
      review: FR translation
      [Serializer] Add AbstractNormalizerContextBuilder::defaultConstructorArguments()
      Update spanish and catalan translations
      Update AbstractSchemaListener.php to adjust more database params
      Updated id=113 Arabic translation.
      #53771 Updated validator Lithuanian translations
      review: translation RU
      [PropertyInfo] Fix PHPStan properties type in trait
      explicitly cast boolean SSL stream options
      ...
    xabbuh committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    c5f718c View commit details
    Browse the repository at this point in the history
Loading