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/config
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.0
Choose a base ref
...
head repository: symfony/config
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.1
Choose a head ref
  • 9 commits
  • 11 files changed
  • 6 contributors

Commits on Nov 21, 2025

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

Commits on Nov 27, 2025

  1. Merge branch '7.3' into 7.4

    * 7.3:
      fix test
      Restore Relay 8.5 test
      account for PHP_ZTS being a boolean value on PHP 8.4+
      [Intl] Update data to ICU 78.1
      [Notifier][Smsbox] Add tests for `Mode` enum
      [DependencyInjection] Remove unused variable
      [Console] Fix exception message when abbreviation matches multiple hidden commands
      [FrameworkBundle] Fix TypeError when traversing scalar values in debug:config
      [DependencyInjection] Fix loop corruption in CheckTypeDeclarationsPass
      [Security] Fix UserBadge validation bypass via identifier normalizer
      [DependencyInjection] Fix invalid PHP syntax for nullable TypedReference in PhpDumper
      Fix typo in comment
      [Translation][Routing] Fix typos
      [Config] Fix nullable EnumNode with BackedEnum
      [String] Fix normalization in trimPrefix/trimSuffix
    xabbuh committed Nov 27, 2025
    Configuration menu
    Copy the full SHA
    f76c74e View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2025

  1. Merge branch '7.4' into 8.0

    * 7.4: (40 commits)
      [PropertyInfo] treat mixed[] the same as array when getting types from docblocks
      treat `mixed[]` the same as `array` when getting types from docblocks
      install ext-zstd on PHP 8.5 as well
      fix merge
      [Console] Fix profile invokable command
      sync ControllerHelper docblock with latest AbstractController changes
      fix: Typehint for `createForm` in abstractController
      [Notifier][Mercure] Add support for Mercure 0.7
      register attribute loader arguments in a forward-compatible way
      ensure compatibility with RelayCluster 0.20.0
      mark test using a Redis connection as an integration test
      ensure compatibility with Relay extension 0.20.0
      [FrameworkBundle] Allow backed enum to be used in initial_marking workflow configuration
      [DependencyInjection] Fix `query_string` env processor for URLs without query string
      [HttpFoundation] Fix Expires response header for EventStream
      Bump Symfony version to 7.4.1
      Update VERSION for 7.4.0
      Update CHANGELOG for 7.4.0
      -
      [DependencyInjection] Fix state corruption in PhpFileLoader during recursive imports
      ...
    xabbuh committed Dec 1, 2025
    Configuration menu
    Copy the full SHA
    957ef0b View commit details
    Browse the repository at this point in the history
  2. Import all node definition classes to DefinitionConfigurator

    Noticed problem on static analysis with `UnknownClass` due to not all`*NodeDefinition` being imported, see symfony/symfony@8099cda#commitcomment-171732637
    brzuchal authored Dec 1, 2025
    Configuration menu
    Copy the full SHA
    5ec5bd9 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2025

  1. Merge branch '7.4' into 8.0

    * 7.4: (21 commits)
      [SecurityBundle] Fix tests with Symfony 7.4
      [DependencyInjection] Ensure deprecation detection does not trigger a PHP error
      [DependencyInjection][FrameworkBundle] fix BC break when dumping container for build/lint commands
      [Form] Clean up wrong method docblocks in data transformers
      Fix merge
      [DependencyInjection] Throw when using `$this` or its internal scope from PHP config files; use the `$loader` variable instead
      [HttpClient] Fix sharing CurlClientState between clones of CurlHttpClient instances
      [FrameworkBundle] Don't exclude classes with constraint/serialization attributes from being registered as services
      Revert "[HttpClient] Lazily initialize CurlClientState"
      [Yaml] Fix regression handling blank lines in unquoted scalars
      [Cache] Fix NullAdapter must set taggable
      [FrameworkBundle] Order alphabetically known tags of `UnusedTagsPass`
      allow the installation of MercureBundle 0.4
      [Console] don't discard existing aliases when constructing Command
      Import all node definition classes to DefinitionConfigurator
      Fix the creation of a redis connection with only ext-relay
      [FrameworkBundle] Dump bundles config reference first
      [DependencyInjection] Don't add the .container.known_envs parameter when empty
      [DependencyInjection] Reset resolved state when setting a parameter
      [HttpKernel] Don't reset services between fragments redering when using in HttpCache
      ...
    nicolas-grekas committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    f7f6ef4 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2025

  1. Configuration menu
    Copy the full SHA
    4c407fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b48b61 View commit details
    Browse the repository at this point in the history
  3. bug #62563 [Config] Fix array shape generation for backed enums (Oska…

    …rStark)
    
    This PR was squashed before being merged into the 7.4 branch.
    
    Discussion
    ----------
    
    [Config] Fix array shape generation for backed enums
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 7.4
    | Bug fix?      | yes
    | New feature?  | no
    | Deprecations? | no
    | Issues        | --
    | License       | MIT
    
    Spotted in symfony/ai#1013 ➡️ https://github.com/symfony/ai/actions/runs/19780810683/job/56680686767?pr=1013
    
    It works for `redis`, but not for `postgres`, because `redis` is using `->values(Distance::cases())` and `postgres` is using `->enumFqcn(PostgresDistance::class)`:
    
    ### Redis
    
    #### Enum
    ```php
    enum Distance: string
    {
        use Comparable;
    
        case Cosine = 'COSINE';
        case L2 = 'L2';
        case Ip = 'IP';
    }
    ```
    #### Config
    ```php
    ->enumNode('distance')
        ->info('Distance metric to use for vector similarity search')
        ->values(Distance::cases())
        ->defaultValue(Distance::Cosine)
    ->end()
    ```
    #### RESULT
    ```php
     *         redis?: array<string, array{ // Default: []
     *             connection_parameters?: mixed, // see https://github.com/phpredis/phpredis?tab=readme-ov-file#example-1
     *             client?: string, // a service id of a Redis client
     *             index_name: string,
     *             key_prefix?: string, // Default: "vector:"
     *             distance?: \Symfony\AI\Store\Bridge\Redis\Distance::Cosine|\Symfony\AI\Store\Bridge\Redis\Distance::L2|\Symfony\AI\Store\Bridge\Redis\Distance::Ip, // Distance metric to use for vector similarity search // Default: "COSINE"
     *         }>,
    ```
    
    ### Postgres
    
    #### Enum
    ```php
    enum Distance: string
    {
        use Comparable;
    
        case Cosine = 'cosine';
        case InnerProduct = 'inner_product';
        case L1 = 'l1';
        case L2 = 'l2';
    
        public function getComparisonSign(): string
        {
            return match ($this) {
                self::Cosine => '<=>',
                self::InnerProduct => '<#>',
                self::L1 => '<+>',
                self::L2 => '<->',
            };
        }
    }
    ```
    #### Config
    ```php
    ->enumNode('distance')
        ->info('Distance metric to use for vector similarity search')
        ->enumFqcn(PostgresDistance::class)
        ->defaultValue(PostgresDistance::L2)
    ->end()
    ```
    #### RESULT
    ```php
     *         postgres?: array<string, array{ // Default: []
     *             dsn?: string,
     *             username?: string,
     *             password?: string,
     *             table_name: string,
     *             vector_field?: string,
     *             distance?: cosine|inner_product|l1|l2, // Distance metric to use for vector similarity search // Default: "l2"
     *             dbal_connection?: string,
     *         }>,
    ```
    
    you can see, that the result is different:
    FQCN:
    `distance?: \Symfony\AI\Store\Bridge\Redis\Distance::Cosine|\Symfony\AI\Store\Bridge\Redis\Distance::L2|\Symfony\AI\Store\Bridge\Redis\Distance::Ip,`
    vs. strings:
    `distance?: cosine|inner_product|l1|l2,`
    
    Why?
    
    Commits
    -------
    
    62422c43483 [Config] Fix array shape generation for backed enums
    nicolas-grekas committed Dec 5, 2025
    Configuration menu
    Copy the full SHA
    2c32330 View commit details
    Browse the repository at this point in the history
  4. Merge branch '7.4' into 8.0

    * 7.4:
      [TypeInfo] Simple array should be array type
      Handle signals on text input
      [TwigBridge] Fix form constraint
      [Runtime] Reuse the already created Request object when the app needs it as argument returns a kernel
      [Config] Fix array shape generation for backed enums
      [Config] Define `TreeBuilder` default generic type
      Update validators.el.xlf
      Fix MoneyType: add missing step attribute when html5=true
      [JsonStreamer] fix invalid json output for list of self
      [Console] Preserve `--help` option when a command is not found
      [FrameworkBundle] Fix using `FailedMessages*Command` with `SigningSerializer`
      [Lock] Fix unserializing already serialized Key payloads
      [HttpClient] CachingHttpClient must run after UriTemplate and Scoping
      Only register PhpConfigReferenceDumpPass in dev env with debug flag enabled
      [Messenger] Fix PHP 8.5 deprecation for pgsqlGetNotify() in PostgreSQL transport
      chore: PHP CS Fixer - do not use deprecated sets in config
      verify spanish translations with state needs-review-translation
      [Security] Fix OIDC discovery when using multiple HttpClient instances
      [DependencyInjection] Allow manual bindings on parameters with #[Target]
    nicolas-grekas committed Dec 5, 2025
    Configuration menu
    Copy the full SHA
    a5a054e View commit details
    Browse the repository at this point in the history
Loading