Skip to content

Commit

Permalink
:octocat: static analysis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Sep 24, 2024
1 parent 129f381 commit 81291a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
'PhanAccessOverridesFinalConstant',
'PhanDeprecatedClass',
'PhanDeprecatedClassConstant',
'PhanParamTooFewInternal', // calls to "exit" in PHP 8.4???
],
];
12 changes: 8 additions & 4 deletions tests/Output/QRGdImageTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ public function testOutputGetResource():void{

$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{
Expand Down

0 comments on commit 81291a4

Please sign in to comment.