From 11756c4f20a18c516427804226cee0a8e45dc875 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 30 Aug 2026 17:14:58 +0000 Subject: [PATCH 1/3] Update PHP - All packages except core - Minor and patch | datasource | package | from | to | | ---------- | ---------------------------- | ----- | ------ | | packagist | phpstan/phpstan | 2.2.8 | 2.2.10 | | packagist | rector/rector | 2.6.3 | 2.6.4 | | packagist | vincentlanglet/twig-cs-fixer | 4.0.2 | 4.1.0 | --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 3c42f9737..2d41023e8 100644 --- a/composer.json +++ b/composer.json @@ -56,12 +56,12 @@ "phpcompatibility/php-compatibility": "^10.0@alpha", "phpspec/prophecy-phpunit": "^2.5", "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^2.2.8", + "phpstan/phpstan": "^2.2.10", "phpunit/phpunit": "^11.5.56", "pyrech/composer-changelogs": "^2.2", - "rector/rector": "^2.6.3", + "rector/rector": "^2.6.4", "softcreatr/jsonpath": "^0.10 || ^1.0", - "vincentlanglet/twig-cs-fixer": "^4.0.2" + "vincentlanglet/twig-cs-fixer": "^4.1.0" }, "conflict": { "drupal/drupal": "*" From f29e2a12f4a7487fc811d05ef53d9202489e7e8f Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 31 Aug 2026 05:25:34 +1000 Subject: [PATCH 2/3] Collapsed 'isset()' guards in 'setEnvVars()' into null-coalescing assignments. --- tests/phpunit/Drupal/SettingsTestCase.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/phpunit/Drupal/SettingsTestCase.php b/tests/phpunit/Drupal/SettingsTestCase.php index dabf01d3c..4e4bfedd2 100644 --- a/tests/phpunit/Drupal/SettingsTestCase.php +++ b/tests/phpunit/Drupal/SettingsTestCase.php @@ -135,19 +135,13 @@ protected function tearDown(): void { */ protected function setEnvVars(array $vars): void { // Unset the existing environment variable if not set in the test. - if (!isset($vars['TMP'])) { - $vars['TMP'] = NULL; - } + $vars['TMP'] ??= NULL; // Unset the existing environment variable if not set in the test. - if (!isset($vars['DRUPAL_CONFIG_PATH'])) { - $vars['DRUPAL_CONFIG_PATH'] = NULL; - } + $vars['DRUPAL_CONFIG_PATH'] ??= NULL; // Do not enforce the CI environment unless it is explicitly set. - if (!isset($vars['CI'])) { - $vars['CI'] = FALSE; - } + $vars['CI'] ??= FALSE; // Filtered real vars without a value to unset them in the lines below. $vars_real = self::getRealEnvVarsFilteredNoValues(static::ALLOWED_ENV_VARS); From ef65caad128bfbfec6d658923cd77f7af981f020 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Mon, 31 Aug 2026 05:26:12 +1000 Subject: [PATCH 3/3] Updated snapshots. --- .../tests/phpunit/Drupal/SettingsTestCase.php | 12 +++--------- .../tests/phpunit/Drupal/SettingsTestCase.php | 2 +- .../tests/phpunit/Drupal/SettingsTestCase.php | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/phpunit/Drupal/SettingsTestCase.php b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/phpunit/Drupal/SettingsTestCase.php index ee438d536..bafacd49e 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/phpunit/Drupal/SettingsTestCase.php +++ b/.vortex/installer/tests/Fixtures/handler_process/_baseline/tests/phpunit/Drupal/SettingsTestCase.php @@ -132,19 +132,13 @@ protected function tearDown(): void { */ protected function setEnvVars(array $vars): void { // Unset the existing environment variable if not set in the test. - if (!isset($vars['TMP'])) { - $vars['TMP'] = NULL; - } + $vars['TMP'] ??= NULL; // Unset the existing environment variable if not set in the test. - if (!isset($vars['DRUPAL_CONFIG_PATH'])) { - $vars['DRUPAL_CONFIG_PATH'] = NULL; - } + $vars['DRUPAL_CONFIG_PATH'] ??= NULL; // Do not enforce the CI environment unless it is explicitly set. - if (!isset($vars['CI'])) { - $vars['CI'] = FALSE; - } + $vars['CI'] ??= FALSE; // Filtered real vars without a value to unset them in the lines below. $vars_real = self::getRealEnvVarsFilteredNoValues(static::ALLOWED_ENV_VARS); diff --git a/.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/tests/phpunit/Drupal/SettingsTestCase.php b/.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/tests/phpunit/Drupal/SettingsTestCase.php index e4dea1a63..7823a4cb7 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/tests/phpunit/Drupal/SettingsTestCase.php +++ b/.vortex/installer/tests/Fixtures/handler_process/hosting_acquia/tests/phpunit/Drupal/SettingsTestCase.php @@ -1,4 +1,4 @@ -@@ -193,7 +193,7 @@ +@@ -187,7 +187,7 @@ * Require settings file. */ protected function requireSettingsFile(array $pre_settings = [], array $pre_config = []): void { diff --git a/.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/tests/phpunit/Drupal/SettingsTestCase.php b/.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/tests/phpunit/Drupal/SettingsTestCase.php index e4dea1a63..7823a4cb7 100644 --- a/.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/tests/phpunit/Drupal/SettingsTestCase.php +++ b/.vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/tests/phpunit/Drupal/SettingsTestCase.php @@ -1,4 +1,4 @@ -@@ -193,7 +193,7 @@ +@@ -187,7 +187,7 @@ * Require settings file. */ protected function requireSettingsFile(array $pre_settings = [], array $pre_config = []): void {