Skip to content

Commit

Permalink
πŸš€ Update for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradSollitt committed Dec 27, 2021
1 parent 4e18472 commit 9676536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function getLatestRelease() {
echo str_repeat('-', 80) . LINE_BREAK;
echo 'Getting latest release of FastSitePHP: ' . $url . LINE_BREAK;
$context = stream_context_create($http_options);
$response = file_get_contents($url, null, $context);
$response = file_get_contents($url, false, $context);
$json = json_decode($response);
if ($json && isset($json->tag_name)) {
echo 'Version: ' . $json->tag_name . LINE_BREAK;
Expand Down Expand Up @@ -231,7 +231,7 @@ function downloadZip($url, $path) {
),
);
$context = stream_context_create($http_options);
$response = file_get_contents($url, null, $context);
$response = file_get_contents($url, false, $context);

// Look for a 200 Response Code, example:
// 'HTTP/1.0 200 OK'
Expand Down

0 comments on commit 9676536

Please sign in to comment.