Skip to content

Commit

Permalink
adds null coalescing operator check for bootstrap key index (#4685)
Browse files Browse the repository at this point in the history
Fixes issue for inspector check for installed Drupal bootstrap value when not installed and no value is returned.

Co-authored-by: Dane Powell <git@danepowell.com>
  • Loading branch information
shelane and danepowell authored Jun 26, 2023
1 parent 03e2e33 commit 911d737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Robo/Inspector/Inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function isDrupalSettingsFileValid() {
*/
public function isDrupalInstalled() {
$this->logger->debug("Verifying that Drupal is installed...");
$output = $this->getDrushStatus()['bootstrap'];
$output = $this->getDrushStatus()['bootstrap'] ?? '';
$installed = $output === 'Successful';
$this->logger->debug("Drupal bootstrap results: $output");

Expand Down

0 comments on commit 911d737

Please sign in to comment.