Merge branch '2.8' into 3.4

* 2.8:
  invalidate stale commits for PRs too
This commit is contained in:
Fabien Potencier 2018-10-10 02:30:31 -07:00
commit cb7dedfbed
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ foreach ($composerJsons as list($dir, $lockedPackages)) {
}
}
if (!$referencedCommits || (isset($_SERVER['TRAVIS_PULL_REQUEST']) && 'false' !== $_SERVER['TRAVIS_PULL_REQUEST'])) {
// cached commits cannot be stale for PRs
if (!$referencedCommits) {
return;
}