Skip to content

Commit

Permalink
Avoid fatal type error when checking numeric requirements (#6054)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebymikey authored Aug 2, 2024
1 parent b8746c3 commit 3927c4b
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 @@ -95,7 +95,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 3927c4b

Please sign in to comment.