:octocat: shouldn't have touched it...

This commit is contained in:
codemasher
2021-11-19 16:00:58 +01:00
parent dae32edff5
commit 92df74ea46
+1 -1
View File
@@ -41,7 +41,7 @@ final class GDLuminanceSource extends LuminanceSourceAbstract{
/** @noinspection PhpFullyQualifiedNameUsageInspection */
if(
(PHP_MAJOR_VERSION >= 8 && !$gdImage instanceof \GdImage)
|| (!is_resource($gdImage) || get_resource_type($gdImage) !== 'gd')
|| (PHP_MAJOR_VERSION < 8 && (!is_resource($gdImage) || get_resource_type($gdImage) !== 'gd'))
){
throw new InvalidArgumentException('Invalid GD image source.');
}