Skip to content

Commit a946108

Browse files
committed
PHPStan fix
1 parent 8ebddaf commit a946108

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Theme_Command.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,9 @@ public function install( $args, $assoc_args ) {
588588
* +---------+----------------+
589589
*/
590590
public function get( $args, $assoc_args ) {
591+
/**
592+
* @var \WP_Theme $theme
593+
*/
591594
$theme = $this->fetcher->get_check( $args[0] );
592595

593596
$errors = $theme->errors();
@@ -613,10 +616,10 @@ public function get( $args, $assoc_args ) {
613616
'tags',
614617
'theme_root',
615618
'theme_root_uri',
616-
'type',
617619
];
618620
$theme_obj = new stdClass();
619621
foreach ( $theme_vars as $var ) {
622+
// @phpstan-ignore-next-line
620623
$theme_obj->$var = $theme->$var;
621624
}
622625

0 commit comments

Comments
 (0)