add type hint

This commit is contained in:
Steffen Mahler 2020-05-29 13:46:20 +02:00
parent 80bd331123
commit 4714e6d89f
1 changed files with 5 additions and 1 deletions

View File

@ -1146,8 +1146,12 @@ class Cart
/**
* Remove item from cart, whose product is inactive
* and returns true, if so.
*
* @param \Webkul\Checkout\Models\CartItem $item
*
* @return bool
*/
private function removeInactiveItem($item): bool
private function removeInactiveItem(\Webkul\Checkout\Models\CartItem $item): bool
{
if (! $item) {
return false;