You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2021. It is now read-only.
ReorderEligibilityCheckers builds an array of parameters which is passed to $this->reorderEligibilityConstraintMessageFormatter->format(...)
For example, ReorderItemPricesEligibilityChecker build a $reorderProductNamesToTotal which uses product names as key.
If you have product names with only number ("123"), then the keys are casted to integer (123).
In ReorderEligibilityConstraintMessageFormatter::format(), we have:
`
if (count($messageParameters) === 1) {
$message = array_pop($messageParameters);
return $message;
}`
In this cas, its crashes because the return type is not a string but an integer.
Fix: return (string) $message;
ReorderEligibilityCheckers builds an array of parameters which is passed to
$this->reorderEligibilityConstraintMessageFormatter->format(...)For example, ReorderItemPricesEligibilityChecker build a $reorderProductNamesToTotal which uses product names as key.
If you have product names with only number ("123"), then the keys are casted to integer (123).
In ReorderEligibilityConstraintMessageFormatter::format(), we have:
`
if (count($messageParameters) === 1) {
$message = array_pop($messageParameters);
In this cas, its crashes because the return type is not a string but an integer.
Fix:
return (string) $message;