Commit d38a7ab3 authored by catch's avatar catch
Browse files

Revert "task: #3555535 Since symfony/validator 7.4: Support for passing the...

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

This reverts commit 7a4689ae.
parent 7a4689ae
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,3 +92,5 @@
# 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.%
+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(choices: ['ask', 'askHidden', 'confirm', 'choice']),
                    new Choice(['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(choices: ['value', 'config', 'env']),
                    new Choice(['value', 'config', 'env']),
                  ]),
                  'value' => new Optional(),
                  'config' => new Optional([
+10 −12
Original line number Diff line number Diff line
@@ -46,7 +46,6 @@ ckeditor5.plugin.ckeditor5_language:
          toolbarItem: textPartLanguage
        # Only the following values are accepted.
        Choice:
          choices:
          # United Nations "official languages".
          - un
          # Drupal's predefined language list.
@@ -125,7 +124,6 @@ ckeditor5.plugin.ckeditor5_alignment:
        label: 'Alignment type'
        constraints:
          Choice:
            choices:
            - left
            - center
            - right
+9 −12
Original line number Diff line number Diff line
@@ -33,7 +33,6 @@ field.formatter.settings.daterange_default:
      label: 'Display'
      constraints:
        Choice:
          choices:
          - both
          - start_date
          - end_date
@@ -51,7 +50,6 @@ field.formatter.settings.daterange_plain:
      label: 'Display'
      constraints:
        Choice:
          choices:
          - both
          - start_date
          - end_date
@@ -69,7 +67,6 @@ field.formatter.settings.daterange_custom:
      label: 'Display'
      constraints:
        Choice:
          choices:
          - both
          - start_date
          - end_date
+4 −5
Original line number Diff line number Diff line
@@ -114,7 +114,6 @@ file.formatter.media:
      constraints:
        # @see \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::settingsSummary()
        Choice:
          choices:
          # Multiple file display: Multiple HTML tags
          - tags
          # Multiple file display: One HTML tag with multiple sources
Loading