Skip to content

Commit

Permalink
QuantityValueRange: Call to a member function getMinimum() on null (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse authored Oct 21, 2024
1 parent 5046f03 commit 66c2bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/DataObject/ClassDefinition/Data/QuantityValueRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ public function checkValidity(mixed $data, bool $omitMandatoryCheck = false, arr
throw new ValidationException('Expected an instance of QuantityValueRange');
}

$minimum = $data->getMinimum();
$maximum = $data->getMaximum();
$minimum = $data?->getMinimum();
$maximum = $data?->getMaximum();

if ($omitMandatoryCheck === false && $this->getMandatory()
&& ($data === null
Expand Down

0 comments on commit 66c2bcd

Please sign in to comment.