mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-20 06:30:56 +08:00
Remove default value from $include_total
This parameter isn't actually optional because it is followed by required parameters. This issues a warning on PHP 8.
This commit is contained in:
parent
ef7bcac43e
commit
22092bec7b
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class Formatter {
|
|||
*
|
||||
* @param array $items
|
||||
*/
|
||||
public function display_items( $items, $include_total = true, $order, $orderby ) {
|
||||
public function display_items( $items, $include_total, $order, $orderby ) {
|
||||
if ( 'table' === $this->args['format'] && empty( $this->args['field'] ) ) {
|
||||
$this->show_table( $order, $orderby, $items, $this->args['fields'], $include_total );
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue