File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
app/code/Magento/Tax/Test/Unit/Model/Sales/Total/Quote Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -455,13 +455,12 @@ public function testMapItemSetsExtensionAttributePriceForTaxCalculation(): void
455455 private $ price ;
456456
457457 /**
458- * @param float|null $priceForTaxCalculation
458+ * @param mixed ...$args
459459 * @return $this
460- * @SuppressWarnings(PHPMD.UnusedLocalVariable)
461460 */
462- public function setPriceForTaxCalculation ($ priceForTaxCalculation )
461+ public function setPriceForTaxCalculation (... $ args )
463462 {
464- $ this ->price = $ priceForTaxCalculation ;
463+ $ this ->price = $ args [ 0 ] ?? null ;
465464 return $ this ;
466465 }
467466
@@ -1309,13 +1308,12 @@ public function testConstructorFallsBackToObjectManagerForOptionalDependencies()
13091308 private $ price ;
13101309
13111310 /**
1312- * @param float|null $priceForTaxCalculation
1311+ * @param mixed ...$args
13131312 * @return $this
1314- * @SuppressWarnings(PHPMD.UnusedLocalVariable)
13151313 */
1316- public function setPriceForTaxCalculation ($ priceForTaxCalculation )
1314+ public function setPriceForTaxCalculation (... $ args )
13171315 {
1318- $ this ->price = $ priceForTaxCalculation ;
1316+ $ this ->price = $ args [ 0 ] ?? null ;
13191317 return $ this ;
13201318 }
13211319
You can’t perform that action at this time.
0 commit comments