Skip to content

Commit

Permalink
Merge pull request #121 from WoltLab/obsolete-version-check
Browse files Browse the repository at this point in the history
Remove obsolete check for PHP_VERSION_ID in Stream
  • Loading branch information
Ocramius authored Nov 11, 2022
2 parents 42aa925 + 370a9b1 commit e5b6419
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use function stream_get_meta_data;
use function strstr;

use const PHP_VERSION_ID;
use const SEEK_SET;

/**
Expand Down Expand Up @@ -359,7 +358,7 @@ private function isValidStreamResourceType(mixed $resource): bool
return in_array(get_resource_type($resource), self::ALLOWED_STREAM_RESOURCE_TYPES, true);
}

if (PHP_VERSION_ID >= 80000 && $resource instanceof GdImage) {
if ($resource instanceof GdImage) {
return true;
}

Expand Down

0 comments on commit e5b6419

Please sign in to comment.