Skip to content

Commit

Permalink
ENH Don't use deprecated allVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby authored and GuySartorelli committed Aug 26, 2022
1 parent 4f5f62f commit e5e953f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilenameParsing/FileIDHelperResolutionStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private function resolveWithHash(ParsedFileID $parsedFileID)
$versionFilters['"WasPublished"'] = true;
}

$oldVersionCount = $file->allVersions($versionFilters, "", 1)->count();
$oldVersionCount = $file->Versions($versionFilters, "", 1)->count();
// Our hash was published at some other stage
if ($oldVersionCount > 0) {
return new ParsedFileID($file->getFilename(), $file->getHash(), $parsedFileID->getVariant());
Expand Down

0 comments on commit e5e953f

Please sign in to comment.