Skip to content

Commit

Permalink
Add a PHP version constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Dec 23, 2023
1 parent c3137af commit 3b21b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/img-optm.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ public function pull($manual = false)
$total_pulled_ori++;
};

if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload')) {
if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload') && !version_compare(PHP_VERSION, '5.6.0', '<')) {
// Make sure Requests can load internal classes.
Autoload::register();

Expand Down

0 comments on commit 3b21b38

Please sign in to comment.