From 894bd8f20fab70b40d0e44f8b2cac6b6ed6afe9a Mon Sep 17 00:00:00 2001 From: drishu Date: Wed, 14 Jun 2023 15:13:42 +0300 Subject: [PATCH 1/2] OEL-0000: Fix symfony/validator incompatibility. --- composer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5e18c016f..646b0eca1 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "drush/drush": "^11.1", "openeuropa/code-review": "^2.0.0-alpha6", "openeuropa/task-runner-drupal-project-symlink": "^1.0-beta6", - "phpspec/prophecy-phpunit": "^2" + "phpspec/prophecy-phpunit": "^2", + "symfony/validator": "~v4.4.48 || ~v6.2.5" }, "scripts": { "post-install-cmd": "./vendor/bin/run drupal:site-setup", @@ -57,7 +58,10 @@ "locations": { "web-root": "./build" } - } + }, + "_readme": [ + "Limit symfony/validator to 6.2 see https://www.drupal.org/project/drupal/issues/3363798." + ] }, "config": { "sort-packages": true, From a7ad398093f6a0a0e4ed15bf94f85ad737a84d1e Mon Sep 17 00:00:00 2001 From: drishu Date: Wed, 14 Jun 2023 15:26:31 +0300 Subject: [PATCH 2/2] OEL-0000: Order use statements. --- .../src/TwigExtension/TwigExtension.php | 2 +- src/ConfigImporter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/oe_bootstrap_theme_helper/src/TwigExtension/TwigExtension.php b/modules/oe_bootstrap_theme_helper/src/TwigExtension/TwigExtension.php index 1be3c4636..4df578c4a 100644 --- a/modules/oe_bootstrap_theme_helper/src/TwigExtension/TwigExtension.php +++ b/modules/oe_bootstrap_theme_helper/src/TwigExtension/TwigExtension.php @@ -9,8 +9,8 @@ use Drupal\Core\Link; use Drupal\Core\Render\Markup; use Drupal\Core\Template\Attribute; -use Drupal\Core\Template\TwigExtension as CoreTwigExtension; use Drupal\Core\Template\TwigEnvironment; +use Drupal\Core\Template\TwigExtension as CoreTwigExtension; use Drupal\Core\Url; use Drupal\oe_bootstrap_theme_helper\EuropeanUnionLanguages; use Twig\Environment; diff --git a/src/ConfigImporter.php b/src/ConfigImporter.php index 691cf5071..3197c6cd2 100644 --- a/src/ConfigImporter.php +++ b/src/ConfigImporter.php @@ -4,9 +4,9 @@ namespace Drupal\oe_bootstrap_theme; +use Drupal\Component\Utility\Crypt; use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Config\FileStorage; -use Drupal\Component\Utility\Crypt; use Drupal\Core\Config\StorageInterface; /**