Skip to content

Commit

Permalink
Merge pull request #39458 from owncloud/phan-5.2
Browse files Browse the repository at this point in the history
Bump phan PHP analysis v4 to v5
  • Loading branch information
phil-davis authored Nov 9, 2021
2 parents d9428c7 + f2a59e7 commit dbdc900
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/private/DB/MigrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ public function getMigration($alias) {
case 'latest':
$this->ensureMigrationsAreLoaded();

return @\end($this->getAvailableVersions());
// A variable must be used because \end() must pass the array by reference
$availableVersionsArray = $this->getAvailableVersions();
return @\end($availableVersionsArray);
}
return '0';
}
Expand Down Expand Up @@ -336,7 +338,9 @@ private function getCurrentVersion() {
if (\count($m) === 0) {
return '0';
}
return @\end(\array_values($m));
// A variable must be used because \end() must pass the array by reference
$migratedVersionsArray = \array_values($m);
return @\end($migratedVersionsArray);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/phan/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"phan/phan": "^4.0"
"phan/phan": "^5.2"
}
}

0 comments on commit dbdc900

Please sign in to comment.