:octocat: switch phan for phpstan (see #277)

This commit is contained in:
smiley
2024-07-21 05:25:26 +02:00
parent f65d9d2815
commit 89cdd09044
72 changed files with 539 additions and 217 deletions
+4 -1
View File
@@ -51,6 +51,9 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
$this->options->readerUseImagickIfAvailable = false;
}
/**
* @phpstan-return array<string, array{0: string, 1: string, 2: bool}>
*/
public static function qrCodeProvider():array{
return [
'helloworld' => ['hello_world.png', 'Hello world!', false],
@@ -129,7 +132,7 @@ abstract class QRCodeReaderTestAbstract extends TestCase{
/**
* @noinspection PhpUndefinedConstantInspection - see phpunit.xml.dist
* @phan-suppress-next-next-line PhanUndeclaredConstant
* @phpstan-ignore-next-line
*/
for($v = 1; $v <= READER_TEST_MAX_VERSION; $v++){
$version = new Version($v);