Skip to content

Commit

Permalink
fix php 7 error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti authored Mar 16, 2022
1 parent 1023e28 commit 059aa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HeartBeat.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function alive(string $url): void
],
]
);
$headers = @get_headers($url, false, $context);
$headers = @get_headers($url, 0, $context);
if (false === $headers) {
throw new HeartBeatException('HeartBeat error occurred sending alive');
}
Expand Down

0 comments on commit 059aa7e

Please sign in to comment.