Skip to content

Commit

Permalink
Fix version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Sep 13, 2021
1 parent 98f6d40 commit 9022996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageData/LogoImageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function createDataUri(): string
private static function detectMimeTypeFromUrl(string $url): string
{
/** @var mixed $format */
$format = PHP_VERSION > 80000 ? true : 1;
$format = version_compare(PHP_VERSION, '80000') >= 0 ? true : 1;

$headers = get_headers($url, $format);

Expand Down

0 comments on commit 9022996

Please sign in to comment.