mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-11 02:06:29 +00:00
:octocat: static analysis happy
This commit is contained in:
@@ -58,5 +58,6 @@ return [
|
||||
'PhanAccessOverridesFinalConstant',
|
||||
'PhanDeprecatedClass',
|
||||
'PhanDeprecatedClassConstant',
|
||||
'PhanParamTooFewInternal', // calls to "exit" in PHP 8.4???
|
||||
],
|
||||
];
|
||||
|
||||
@@ -70,10 +70,14 @@ abstract class QRGdImageTestAbstract extends QROutputTestAbstract{
|
||||
|
||||
$actual = $this->outputInterface->dump();
|
||||
|
||||
/** @noinspection PhpFullyQualifiedNameUsageInspection */
|
||||
PHP_MAJOR_VERSION >= 8
|
||||
? $this::assertInstanceOf(\GdImage::class, $actual)
|
||||
: $this::assertIsResource($actual);
|
||||
if(PHP_MAJOR_VERSION >= 8){
|
||||
/** @noinspection PhpFullyQualifiedNameUsageInspection */
|
||||
$this::assertInstanceOf(\GdImage::class, $actual); // phpcs:ignore
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this::assertIsResource($actual);
|
||||
}
|
||||
|
||||
public function testBase64MimeType():void{
|
||||
|
||||
Reference in New Issue
Block a user