From b3e76be166baaf981bc62f4b5ac9692ae2b80ee5 Mon Sep 17 00:00:00 2001 From: Renato Dehnhardt Date: Wed, 13 Sep 2017 10:42:29 -0300 Subject: [PATCH] Update Exchange.php --- src/Exchange.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Exchange.php b/src/Exchange.php index 20fe8d8..50dcc89 100644 --- a/src/Exchange.php +++ b/src/Exchange.php @@ -13,12 +13,8 @@ class Exchange * Exchange constructor. * @param Fixer $fixer */ - public function __construct(Fixer $fixer = null) + public function __construct(Fixer $fixer) { - if ($fixer === null) { - $fixer = new Fixer(); - } - $this->fixer = $fixer; } @@ -38,4 +34,4 @@ public function rate($amount, $from, $to, $rate = null) return $amount * $rate; } -} \ No newline at end of file +}