Skip to content

Commit

Permalink
Suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gogdzl committed May 10, 2024
1 parent 43cfe7d commit d546d6f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ public function import_crm_object_data( $crm_object_data ) {
}

// Add/update invoice (if enabled) (previously `add_or_update_invoice`), while checking for a 'Do not create' status to avoid creating this invoice if the mapping doesn't allow it
// @phan-suppress PhanTypeInvalidDimOffset
if ( $settings['wcinv'] == 1 && isset( $crm_object_data['invoice'] ) && isset( $crm_object_data['invoice']['status'] ) && $crm_object_data['invoice']['status'] !== JPCRM_WOOSYNC_DO_NOT_CREATE['id'] ) { // phpcs:ignore Universal.Operators.StrictComparisons.LooseEqual

Check failure on line 940 in projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php

View workflow job for this annotation

GitHub Actions / Static analysis

TypeError PhanTypeInvalidDimOffset Invalid offset "status" of $crm_object_data['invoice'] of array type array{contacts:array{0:mixed}}

// retrieve existing invoice
Expand Down

0 comments on commit d546d6f

Please sign in to comment.