From 4c37fa4b41b0cab50a4fc192e9120042dbe36872 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Nov 2021 18:33:35 +0300 Subject: update phpstan to 1.1.2; update php-qrcode to 3.4.1 --- vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vendor/chillerlan/php-qrcode/tests') diff --git a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php index 34ecf4f91..c4466a658 100644 --- a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php +++ b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php @@ -13,6 +13,7 @@ namespace chillerlan\QRCodeTest\Output; use chillerlan\QRCode\{QRCode, Output\QRImage}; +use const PHP_MAJOR_VERSION; class QRImageTest extends QROutputTestAbstract{ @@ -63,7 +64,14 @@ class QRImageTest extends QROutputTestAbstract{ $this->setOutputInterface(); - $this::assertIsResource($this->outputInterface->dump()); + $data = $this->outputInterface->dump(); + + if(PHP_MAJOR_VERSION >= 8){ + $this::assertInstanceOf('\\GdImage', $data); + } + else{ + $this::assertIsResource($data); + } } } -- cgit v1.2.3