Skip to content

Commit

Permalink
Fix version check helper
Browse files Browse the repository at this point in the history
  • Loading branch information
szeber committed Oct 26, 2019
1 parent ff2f314 commit ec172f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShoppinPal/Vend/DataObject/Entity/V2/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ec172f9

Please sign in to comment.