diff --git a/src/SIE/Data/Verification.php b/src/SIE/Data/Verification.php index 74a42ae..d46f29b 100644 --- a/src/SIE/Data/Verification.php +++ b/src/SIE/Data/Verification.php @@ -54,7 +54,7 @@ class Verification * Transactions for this Verification * @var Transaction[] */ - protected $transactions; + protected $transactions = []; /** * Construct a Verification @@ -188,7 +188,7 @@ public function validate() if (!$this->date) { throw new DomainException('Mandatory field date'); } - if (count($this->transactions) == 0) { + if (count($this->transactions) === 0) { throw new DomainException('No transactions for verification id "' . $this->id . '".'); }