Commit e586ddcd authored by catch's avatar catch
Browse files

task: #3555535 Since symfony/validator 7.4: Support for passing the choices as...

task: #3555535 Since symfony/validator 7.4: Support for passing the choices as the first argument to Symfony\Component\Validator\Constraints\Choice is deprecated.

By: longwave
By: godotislate
By: catch
(cherry picked from commit f124b9e8)
parent d38a7ab3
Loading
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -92,5 +92,3 @@
# Symfony 7.4.
%Since symfony/http-foundation 7.4: Request::get\(\) is deprecated, use properties -.*attributes, query or request directly instead.%
%Since symfony/validator 7.4: Support for evaluating options in the base Constraint class is deprecated. Initialize properties in the constructor of Drupal\\(Core|ckeditor5|file)\\[^ ]+ instead.%
%Since symfony/validator 7.4: Support for passing the choices as the first argument to Drupal\\Core\\[^ ]+ is deprecated.%
%Since symfony/validator 7.4: Support for passing the choices as the first argument to Symfony\\Component\\Validator\\Constraints\\Choice is deprecated.%
+3 −2
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ block_settings:
      label: 'Display title'
      constraints:
        Choice:
          choices:
            - '0'
            - visible
        NotBlank: []
+2 −2
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ private static function parse(string $file): array {
              'prompt' => new Optional([
                new Collection([
                  'method' => [
                    new Choice(['ask', 'askHidden', 'confirm', 'choice']),
                    new Choice(choices: ['ask', 'askHidden', 'confirm', 'choice']),
                  ],
                  'arguments' => new Optional([
                    new Type('associative_array'),
@@ -237,7 +237,7 @@ private static function parse(string $file): array {
              'default' => new Required([
                new Collection([
                  'source' => new Required([
                    new Choice(['value', 'config', 'env']),
                    new Choice(choices: ['value', 'config', 'env']),
                  ]),
                  'value' => new Optional(),
                  'config' => new Optional([
+12 −10
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ ckeditor5.plugin.ckeditor5_language:
          toolbarItem: textPartLanguage
        # Only the following values are accepted.
        Choice:
          choices:
            # United Nations "official languages".
            - un
            # Drupal's predefined language list.
@@ -124,6 +125,7 @@ ckeditor5.plugin.ckeditor5_alignment:
        label: 'Alignment type'
        constraints:
          Choice:
            choices:
              - left
              - center
              - right
+12 −9
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ field.formatter.settings.daterange_default:
      label: 'Display'
      constraints:
        Choice:
          choices:
            - both
            - start_date
            - end_date
@@ -50,6 +51,7 @@ field.formatter.settings.daterange_plain:
      label: 'Display'
      constraints:
        Choice:
          choices:
            - both
            - start_date
            - end_date
@@ -67,6 +69,7 @@ field.formatter.settings.daterange_custom:
      label: 'Display'
      constraints:
        Choice:
          choices:
            - both
            - start_date
            - end_date
Loading