Skip to content

Commit 3069b51

Browse files
authored
we have 8.5!
1 parent 90981e3 commit 3069b51

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/SPC/store/source/PhpSource.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ class PhpSource extends CustomSourceBase
1414

1515
public function fetch(bool $force = false, ?array $config = null, int $lock_as = SPC_DOWNLOAD_SOURCE): void
1616
{
17-
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.4';
18-
if ($major === '8.5') {
19-
Downloader::downloadSource('php-src', ['type' => 'url', 'url' => 'https://downloads.php.net/~daniels/php-8.5.0RC5.tar.xz'], $force);
20-
} elseif ($major === 'git') {
17+
$major = defined('SPC_BUILD_PHP_VERSION') ? SPC_BUILD_PHP_VERSION : '8.5';
18+
if ($major === 'git') {
2119
Downloader::downloadSource('php-src', ['type' => 'git', 'url' => 'https://github.com/php/php-src.git', 'rev' => 'master'], $force);
2220
} else {
2321
Downloader::downloadSource('php-src', $this->getLatestPHPInfo($major), $force);

0 commit comments

Comments
 (0)