Skip to content

Commit

Permalink
Replace list() with []
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Apr 30, 2020
1 parent 70fc66d commit c87752e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/MoneyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public function providerDividedBy() : array
public function testQuotientAndRemainder(array $money, int $divisor, string $expectedQuotient, string $expectedRemainder) : void
{
$money = Money::of(...$money);
list ($quotient, $remainder) = $money->quotientAndRemainder($divisor);
[$quotient, $remainder] = $money->quotientAndRemainder($divisor);

$this->assertMoneyIs($expectedQuotient, $quotient);
$this->assertMoneyIs($expectedRemainder, $remainder);
Expand Down

0 comments on commit c87752e

Please sign in to comment.