Skip to content

Commit b4d145d

Browse files
authored
Fix newly reported PHPStan errors (#634)
1 parent 1e7b5e7 commit b4d145d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/Font_Collection_Command.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ public function list_categories( $args, $assoc_args ) {
394394

395395
$fields = [ 'slug', 'name' ];
396396
$formatter = new Formatter( $assoc_args, $fields, 'category' );
397+
/** @var FontCategory[] $categories */
397398
$formatter->display_items( $categories );
398399
}
399400

‎src/WP_CLI/CommandWithMeta.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ public function add( $args, $assoc_args ) {
264264
list( $object_id, $meta_key ) = $args;
265265

266266
$meta_value = WP_CLI::get_value_from_arg_or_stdin( $args, 2 );
267+
/** @var array|string $meta_value */
267268
$meta_value = WP_CLI::read_value( $meta_value, $assoc_args );
268269

269270
$object_id = $this->check_object_id( $object_id );

0 commit comments

Comments
 (0)