diff --git a/src/Font_Collection_Command.php b/src/Font_Collection_Command.php index 6a81a26e6..843e34114 100644 --- a/src/Font_Collection_Command.php +++ b/src/Font_Collection_Command.php @@ -394,6 +394,7 @@ public function list_categories( $args, $assoc_args ) { $fields = [ 'slug', 'name' ]; $formatter = new Formatter( $assoc_args, $fields, 'category' ); + /** @var FontCategory[] $categories */ $formatter->display_items( $categories ); } diff --git a/src/WP_CLI/CommandWithMeta.php b/src/WP_CLI/CommandWithMeta.php index d32391998..a8a15893f 100644 --- a/src/WP_CLI/CommandWithMeta.php +++ b/src/WP_CLI/CommandWithMeta.php @@ -264,6 +264,7 @@ public function add( $args, $assoc_args ) { list( $object_id, $meta_key ) = $args; $meta_value = WP_CLI::get_value_from_arg_or_stdin( $args, 2 ); + /** @var array|string $meta_value */ $meta_value = WP_CLI::read_value( $meta_value, $assoc_args ); $object_id = $this->check_object_id( $object_id );