diff --git a/examples/TSVtoSIE.php b/examples/TSVtoSIE.php index a44e316..72b592f 100644 --- a/examples/TSVtoSIE.php +++ b/examples/TSVtoSIE.php @@ -189,7 +189,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead if ($data['result_unit'] !== '') { // find dimension (pre-defined) $dim = $company->getDimension(Dimension::DIMENSION_COST_CENTRE); - if ($dim === null) { + if (!$dim instanceof Dimension) { throw new \LogicException('Expected to find dimension: DIMENSION_COST_CENTRE'); } @@ -210,7 +210,7 @@ public function parseTransactions(string $value, Company $company, int $skipHead if ($data['project'] !== '') { // find dimension (pre-defined) $dim = $company->getDimension(Dimension::DIMENSION_PROJECT); - if ($dim === null) { + if (!$dim instanceof Dimension) { throw new \LogicException('Expected to find dimension: DIMENSION_PROJECT'); } diff --git a/examples/simple.php b/examples/simple.php index 8c4a824..d955789 100644 --- a/examples/simple.php +++ b/examples/simple.php @@ -37,8 +37,6 @@ ->addAccount($account3741) ; - - // add a verification with two transactions $verification = (new Verification('591000490'))->setDate('20150105') ->addTransaction(