Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
wordpressfan committed Dec 17, 2024
1 parent 9040dd8 commit 80873e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Engine/License/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private function get_upgrade_choices() {
foreach ( $this->user->get_available_upgrades() as $available_upgrade ) {
$upgrade_data = $this->get_generic_upgrade_data( $available_upgrade );

if ( ! empty( $available_upgrade->stack ) ) {
if ( ! empty( $available_upgrade->stack ) && ! empty( $available_upgrade->type ) ) {
if ( ! isset( $choices['stacked'] ) ) {
$choices['stacked'] = [];
}
Expand Down

0 comments on commit 80873e7

Please sign in to comment.