Feature/update unit tests #547
Annotations
10 errors
|
Run PHPStan:
packages/core/src/Models/Attribute.php#L85
Property Shopper\Core\Models\Attribute::$is_enabled is not writable.
|
|
Run PHPStan:
packages/core/src/Models/Address.php#L61
Method Shopper\Core\Models\Address::user() should return Illuminate\Database\Eloquent\Relations\BelongsTo<Shopper\Core\Models\User, $this(Shopper\Core\Models\Address)> but returns Illuminate\Database\Eloquent\Relations\BelongsTo<Illuminate\Database\Eloquent\Model, $this(Shopper\Core\Models\Address)>.
|
|
Run PHPStan:
packages/core/src/Contracts/RepositoryContract.php#L62
Template type TModel of method Shopper\Core\Contracts\RepositoryContract::query() is not referenced in a parameter.
|
|
Run PHPStan:
packages/admin/src/Livewire/SlideOvers/GenerateVariants.php#L194
Method Shopper\Livewire\SlideOvers\GenerateVariants::mapVariantsToProductOptions() should return array<string, mixed> but returns list<array<string, mixed>>.
|
|
Run PHPStan:
packages/admin/src/Livewire/Pages/Product/Variant.php#L42
Property Shopper\Livewire\Pages\Product\Variant::$variant (Shopper\Core\Models\ProductVariant) does not accept Illuminate\Database\Eloquent\Model|null.
|
|
Run PHPStan:
packages/admin/src/Livewire/Pages/Product/Variant.php#L41
Property Shopper\Livewire\Pages\Product\Variant::$product (Shopper\Core\Models\Product) does not accept Illuminate\Database\Eloquent\Model|null.
|
|
Run PHPStan:
packages/admin/src/Livewire/Modals/ConfirmPassword.php#L31
Parameter #2 $user of callable Shopper\Actions\Auth\ConfirmPassword expects Shopper\Core\Models\User, Illuminate\Contracts\Auth\Authenticatable|null given.
|
|
Run PHPStan:
packages/admin/src/Livewire/Components/Account/TwoFactor.php#L64
Parameter #1 $user of callable Shopper\Actions\Auth\GenerateNewRecoveryCodes expects Shopper\Core\Models\User, Illuminate\Contracts\Auth\Authenticatable given.
|
|
Run PHPStan:
packages/admin/src/Livewire/Components/Account/TwoFactor.php#L36
Parameter #1 $user of callable Shopper\Actions\Auth\EnableTwoFactorAuthentication expects Shopper\Core\Models\User, Illuminate\Contracts\Auth\Authenticatable given.
|
|
Run PHPStan:
packages/admin/src/Actions/Store/Product/SaveProductVariantsAction.php#L69
Parameter #1 $callback of method Illuminate\Support\Collection<int,stdClass>::each() expects callable(stdClass, int): mixed, Closure(Shopper\Core\Models\ProductVariant): (bool|null) given.
|
Loading