Skip to content

Commit

Permalink
Fix php stan
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenziearts committed Sep 28, 2023
1 parent 9c00630 commit 9f85717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Create extends AbstractBaseComponent
use WithChoicesBrands;
use WithSeoAttributes;

public ?Model $defaultChannel = null;
public $defaultChannel;

public array $category_ids = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function mount($product): void
{
$this->product = $product;
$this->inventories = $inventories = Inventory::all();
$this->inventory = $inventories->firstWhere('is_default', true)->id ?? $inventories->first()?->id; // @phpstan-ignore-line
$this->inventory = $inventories->firstWhere('is_default', true)->id ?? $inventories->first()?->id;
}

public function productHasUpdated(int $id): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Inventory extends Component
use WithPagination;
use WithStock;

public ?Model $product = null;
public $product;

public $inventories;

Expand Down

0 comments on commit 9f85717

Please sign in to comment.