mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
update phpstan to 1.1.2; update php-qrcode to 3.4.1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user