Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added run-ci.txt
Empty file.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function register(Container $container): void

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

Expand Down
1 change: 1 addition & 0 deletions tests/src/Rules/AccessCheckImpossibleTypeCallRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected function getRule(): Rule
true,
false,
false,
false,
);
}

Expand Down