mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 09:38:08 +00:00
:octocat: shouldn't have touched it...
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user