diff --git a/src/ShoppinPal/Vend/DataObject/Entity/V2/Version.php b/src/ShoppinPal/Vend/DataObject/Entity/V2/Version.php index d652789..dbc79e3 100644 --- a/src/ShoppinPal/Vend/DataObject/Entity/V2/Version.php +++ b/src/ShoppinPal/Vend/DataObject/Entity/V2/Version.php @@ -72,7 +72,7 @@ public function hasNewerVersion(string $entityType, ?int $lastRetrievedVersion, $validEntityTypes = array_diff(array_keys(get_object_vars($this)), $invalidEntityTypes); - if (!in_array($entityType, $invalidEntityTypes)) { + if (!in_array($entityType, $validEntityTypes)) { throw new ParameterException('Invalid entity type: ' . $entityType); }