Skip to content

Commit

Permalink
Avoid fatal type error when checking numeric requirements (#6052)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebymikey authored Aug 2, 2024
1 parent 7a3eebb commit 22a26f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/core/DrupalCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function requirements($options = ['format' => 'table', 'severity' => -1,
foreach ($requirements as $key => $info) {
if (is_numeric($key)) {
unset($requirements[$key]);
$new_key = strtolower(str_replace(' ', '_', $info['title']));
$new_key = strtolower(str_replace(' ', '_', (string) $info['title']));
$requirements[$new_key] = $info;
}
}
Expand Down

0 comments on commit 22a26f8

Please sign in to comment.