From 8d22cd31546732e80911f08732f43eff618a3e2c Mon Sep 17 00:00:00 2001 From: smiley Date: Tue, 17 Mar 2026 00:13:03 +0100 Subject: [PATCH] :octocat: silencing the offenders for now (https://github.com/phan/phan/issues/5491) --- examples/custom_output.php | 2 +- src/QRCodeReaderOptionsTrait.php | 2 ++ src/QROptionsTrait.php | 1 + tests/QROptionsTest.php | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/custom_output.php b/examples/custom_output.php index 9b0a2d7bc..798658a07 100644 --- a/examples/custom_output.php +++ b/examples/custom_output.php @@ -61,7 +61,7 @@ class MyCustomOutput extends QROutputAbstract{ $options = new QROptions; $options->version = 5; -/** @phan-suppress-next-line PhanTypeMismatchPropertyProbablyReal */ +/** @phan-suppress-next-line PhanTypeMismatchPropertyReal */ $options->eccLevel = 'L'; // can be assigned as string $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; diff --git a/src/QRCodeReaderOptionsTrait.php b/src/QRCodeReaderOptionsTrait.php index 300fe0aa0..5074aa77a 100644 --- a/src/QRCodeReaderOptionsTrait.php +++ b/src/QRCodeReaderOptionsTrait.php @@ -6,6 +6,8 @@ * @author smiley * @copyright 2024 smiley * @license MIT + * + * @phan-file-suppress PhanUnreferencedUseFunction, PhanPropertyHookWithDefaultValue */ declare(strict_types=1); diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index 1d0c43e12..1f085505c 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -10,6 +10,7 @@ * @license MIT * * @noinspection PhpUnused, PhpComposerExtensionStubsInspection + * @phan-file-suppress PhanUnreferencedUseFunction, PhanPropertyHookWithDefaultValue */ declare(strict_types=1); diff --git a/tests/QROptionsTest.php b/tests/QROptionsTest.php index 049b60563..31bd4dd92 100644 --- a/tests/QROptionsTest.php +++ b/tests/QROptionsTest.php @@ -55,7 +55,7 @@ final class QROptionsTest extends TestCase{ /** * Tests setting the ECC level from string or int * - * @phan-suppress PhanTypeMismatchPropertyProbablyReal + * @phan-suppress PhanTypeMismatchPropertyReal */ #[Test] public function setEccLevel():void{