Skip to content

Commit 9996798

Browse files
authored
Merge pull request #107 from stof/fix_deprecation
Fix PHP 8.5 deprecation
2 parents ee2c40d + 04fe9ef commit 9996798

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/Basic/ScreenshotTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function testScreenshot(): void
2525
$this->fail('The screenshot should be a valid image');
2626
}
2727

28-
imagedestroy($img);
28+
if (\PHP_VERSION_ID < 80000) {
29+
imagedestroy($img);
30+
}
2931
}
3032
}

0 commit comments

Comments
 (0)