Skip to content

Commit

Permalink
Merge pull request #507 from creative-commoners/pulls/1/rescue-master…
Browse files Browse the repository at this point in the history
…-deprecate-allversions

Rescue Master Branch PR: ENH Stop using old deprecated `allVersions` call
  • Loading branch information
emteknetnz authored Aug 31, 2022
2 parents 4a265af + e5e953f commit ce9464b
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 ce9464b

Please sign in to comment.