diff --git a/src/Storage.php b/src/Storage.php index 981f9df..67abc88 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -13,7 +13,7 @@ class Storage implements StorageInterface */ public function __construct(array $items = []) { - $this->items = $items; + $this->setItems($items); } /** diff --git a/src/Validator.php b/src/Validator.php index 99f43ff..add2ad1 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -22,8 +22,8 @@ class Validator */ public function __construct(StorageInterface $primaryStorage, StorageInterface $secondaryStorage = null) { - $this->primaryStorage = $primaryStorage; - $this->secondaryStorage = $secondaryStorage; + $this->setPrimaryStorage($primaryStorage); + $this->setSecondaryStorage($secondaryStorage); } /**