Skip to content

Commit 0f41246

Browse files
authored
Fix CI for main branch (#792)
* Test * Fix CI
1 parent 346bddd commit 0f41246

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

run-ci.txt

Whitespace-only changes.

src/Drupal/DrupalAutoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function register(Container $container): void
9393

9494
$drupalRoot = $finder->getDrupalRoot();
9595
$drupalVendorRoot = $finder->getVendorDir();
96-
if (! (bool) $drupalRoot || ! (bool) $drupalVendorRoot) {
96+
if (!(is_string($drupalRoot) && is_string($drupalVendorRoot))) {
9797
throw new RuntimeException("Unable to detect Drupal at {$drupalParams['drupal_root']}");
9898
}
9999

tests/src/Rules/AccessCheckImpossibleTypeCallRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ protected function getRule(): Rule
2727
true,
2828
false,
2929
false,
30+
false,
3031
);
3132
}
3233

0 commit comments

Comments
 (0)