Skip to content

BeVariant throws a PHP Runtime Deprecation Notice #626

@knusperpixel

Description

@knusperpixel

Bug Report

Current Behavior
The class Classes/Domain/Model/Cart/BeVariant.php throws a PHP Runtime Deprecation Notice: Optional parameter $product declared before required parameter $price is implicitly treated as a required parameter in /var/www/vendor/extcode/cart/Clas
ses/Domain/Model/Cart/BeVariant.php line 46

Expected behavior/output
Run the extension without deprecation warnings.

Environment

  • TYPO3 version(s): 12.4.26
  • cart version: >=9.3.0
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • PHP: 8.3

Possible Solution
In this commit you changed the constructor parameters $productand $beVariant to be optional - maybe undo this?

Metadata

Metadata

Assignees

Labels

10.xrelated to TYPO3 v12

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions