- Lunar version: 1.5.0-beta.6
- Laravel Version: 13.17.0
- PHP Version: 8.5.7
- Database Driver & Version: PostgreSQL 18.4
Expected Behaviour:
Product edit page shown.
Actual Behaviour:
TypeError thrown. See error below:
TypeError
vendor/lunarphp/core/src/Base/Traits/HasCustomerGroups.php:97
Lunar\Models\Product::applyCustomerGroupScope(): Argument ##3 ($startsAt) must be of type DateTime, Carbon\CarbonImmutable given, called in /var/www/html/vendor/lunarphp/core/src/Base/Traits/HasCustomerGroups.php on line 151
Steps To Reproduce:
- Create new Laravel project via
laravel/installer composer package.
- Install Lunar pinned to 1.5.0-beta.6
- Complete Lunar setup (publish configs, run migrations, create first Staff, seed locations data, etc.)
- Create a new Product.
- Change Product status to Published.
- Error is thrown every time the EditProduct page is shown.
Expected Behaviour:
Product edit page shown.
Actual Behaviour:
TypeError thrown. See error below:
TypeError
vendor/lunarphp/core/src/Base/Traits/HasCustomerGroups.php:97
Lunar\Models\Product::applyCustomerGroupScope(): Argument ##3 ($startsAt) must be of type DateTime, Carbon\CarbonImmutable given, called in /var/www/html/vendor/lunarphp/core/src/Base/Traits/HasCustomerGroups.php on line 151
Steps To Reproduce:
laravel/installercomposer package.