Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #254: Resolve additional PHP8+ errors. #264

Merged
merged 1 commit into from
Apr 15, 2024
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
2 changes: 1 addition & 1 deletion BackdropBoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ function commandfile_searchpaths($phase, $phase_max = FALSE) {
// @codingStandardsIgnoreLine
protected function module_list() {
$enabled = array();
$rsc = drush_db_select('system', 'name', 'type=:type AND status=:status', array(':type' => 'module', ':status' => 1));
$rsc = drush_db_select('system', 'name', "type='module' AND status=1", array());
while ($row = drush_db_result($rsc)) {
$enabled[$row] = $row;
}
Expand Down
4 changes: 2 additions & 2 deletions includes/environment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function drush_module_dependents($modules, $module_info) {
*/
function drush_module_list() {
$enabled = array();
$rsc = drush_db_select('system', 'name', 'type = \'module\' AND status = 1', []);
$rsc = drush_db_select('system', 'name', 'type = \'module\' AND status = 1', array());
while ($row = drush_db_result($rsc)) {
$enabled[$row] = $row;
}
Expand All @@ -141,7 +141,7 @@ function drush_module_list() {
*/
function drush_get_named_extensions_list($extensions) {
$result = array();
$rsc = drush_db_select('system', array('name', 'status'), 'name IN (\'' . implode("', '", $extensions) . '\')', []);
$rsc = drush_db_select('system', array('name', 'status'), 'name IN (\'' . implode("', '", $extensions) . '\')', array());
while ($row = drush_db_fetch_object($rsc)) {
$result[$row->name] = $row;
}
Expand Down