From 129ca7fee08b9bac42ce92411bc444092c3b5a7d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 2 May 2021 13:55:32 +0100 Subject: [PATCH] Silence a PHPStan bug I'm not able to reproduce this one on the playground, but it still shows up even when disabling certain phpdocs... --- phpstan.neon.dist | 1 + tests/phpstan/configs/phpstan-bugs.neon | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 20120710e..06f5907b9 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -22,6 +22,7 @@ parameters: level: 8 checkExplicitMixed: true checkMissingCallableSignature: true + treatPhpDocTypesAsCertain: false bootstrapFiles: - tests/phpstan/bootstrap.php scanDirectories: diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index 485bcc628..4828b333b 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -1,5 +1,10 @@ parameters: ignoreErrors: + - + message: "#^Strict comparison using \\!\\=\\= between 5 and 5 will always evaluate to false\\.$#" + count: 1 + path: ../../../src/block/Vine.php + - message: "#^Call to function is_resource\\(\\) with resource will always evaluate to true\\.$#" count: 3