diff --git a/src/Composite/CompositeExpression.php b/src/Composite/CompositeExpression.php index 7908e43f9..1455be41b 100644 --- a/src/Composite/CompositeExpression.php +++ b/src/Composite/CompositeExpression.php @@ -68,7 +68,7 @@ public function getValue(): mixed * Sorted values according to the order of composite type columns, * indexed keys are replaced with column names, * missing elements are filled in with default values, - * redundant elements are removed. + * excessive elements are removed. */ public function getNormalizedValue(): mixed { diff --git a/tests/Provider/CompositeTypeProvider.php b/tests/Provider/CompositeTypeProvider.php index c189cba20..7ad63577f 100644 --- a/tests/Provider/CompositeTypeProvider.php +++ b/tests/Provider/CompositeTypeProvider.php @@ -318,6 +318,11 @@ public static function normolizedValues() ['value' => 10.0, 'currency_code' => 'USD'], $price5UsdColumns, ], + 'Remove excessive elements' => [ + ['value' => 10.0, 'currency_code' => 'USD', 'excessive' => 'element'], + ['value' => 10.0, 'currency_code' => 'USD'], + $price5UsdColumns, + ], 'Fill default values for skipped fields' => [ ['currency_code' => 'CNY'], ['value' => 5.0, 'currency_code' => 'CNY'],