Skip to content

Commit 81291a4

Browse files
committed
:octocat: static analysis happy
1 parent 129f381 commit 81291a4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.phan/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@
5858
'PhanAccessOverridesFinalConstant',
5959
'PhanDeprecatedClass',
6060
'PhanDeprecatedClassConstant',
61+
'PhanParamTooFewInternal', // calls to "exit" in PHP 8.4???
6162
],
6263
];

tests/Output/QRGdImageTestAbstract.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ public function testOutputGetResource():void{
7070

7171
$actual = $this->outputInterface->dump();
7272

73-
/** @noinspection PhpFullyQualifiedNameUsageInspection */
74-
PHP_MAJOR_VERSION >= 8
75-
? $this::assertInstanceOf(\GdImage::class, $actual)
76-
: $this::assertIsResource($actual);
73+
if(PHP_MAJOR_VERSION >= 8){
74+
/** @noinspection PhpFullyQualifiedNameUsageInspection */
75+
$this::assertInstanceOf(\GdImage::class, $actual); // phpcs:ignore
76+
77+
return;
78+
}
79+
80+
$this::assertIsResource($actual);
7781
}
7882

7983
public function testBase64MimeType():void{

0 commit comments

Comments
 (0)