Skip to content

Commit 8f14b59

Browse files
committed
Fix object access
1 parent d8c60d0 commit 8f14b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_CLI/CommandWithMeta.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ public function list_( $args, $assoc_args ) {
112112
function ( $a, $b ) use ( $orderby, $order ) {
113113
// Sort array.
114114
return 'asc' === $order
115-
? $a[ $orderby ] <=> $b[ $orderby ]
116-
: $b[ $orderby ] <=> $a[ $orderby ];
115+
? $a->orderby <=> $b->orderby
116+
: $b->orderby <=> $a->orderby;
117117
}
118118
);
119119

0 commit comments

Comments
 (0)