Skip to content

Commit 48d4359

Browse files
authored
Merge pull request #221 from brandonpayton/fix/mysql-command-argument-order
2 parents f032f61 + 9659ff3 commit 48d4359

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/DB_Command.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,11 +1618,12 @@ private static function run( $cmd, $assoc_args = [], $send_to_shell = true, $int
16181618
uksort(
16191619
$final_args,
16201620
static function ( $a, $b ) {
1621-
switch ( $b ) {
1622-
case 'force':
1623-
return -1;
1624-
default:
1625-
return 1;
1621+
if ( 'force' === $a ) {
1622+
return 1;
1623+
} elseif ( 'force' === $b ) {
1624+
return -1;
1625+
} else {
1626+
return 0;
16261627
}
16271628
}
16281629
);

0 commit comments

Comments
 (0)