[4.2.3]: getDiscountByCode(): Argument #1 ($code) must be of type string, null given #3045
Labels
bug
commerce4
Issues related to Commerce v4
ℹ️ status: need more info
When waiting for user to supply database or more information.
What happened?
Description
I migrated to craft 4 according to the migration guide and everything went well.
Steps to reproduce
craft\commerce\services\Discounts::getDiscountByCode(): Argument #1 ($code) must be of type string, null given, called in /Users/atelierworkstation/Documents/git-local/atelier-shop/vendor/twig/twig/src/Extension/CoreExtension.php on line 1607
Stack Trace
Craft CMS version
4.4.3
Craft Commerce version
4.2.3
PHP version
8.1.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: