From e41cfea7e561b3199ffff54f69e71f071883ddc8 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Tue, 14 Feb 2023 21:09:37 +0000 Subject: [PATCH] Enable checkUninitializedProperties Signed-off-by: Kamil Tekiela --- phpstan-baseline.neon | 5 +++++ phpstan.neon.dist | 1 + 2 files changed, 6 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 33c53b8514..69cd689e9b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -7955,6 +7955,11 @@ parameters: count: 1 path: libraries/classes/Server/Privileges.php + - + message: "#^Access to an uninitialized property PhpMyAdmin\\\\Server\\\\Status\\\\Data\\:\\:\\$replicationInfo\\.$#" + count: 2 + path: libraries/classes/Server/Status/Data.php + - message: "#^Method PhpMyAdmin\\\\Server\\\\Status\\\\Data\\:\\:calculateValues\\(\\) has parameter \\$server_status with no value type specified in iterable type array\\.$#" count: 1 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index bc8ba87917..5a9d1392ef 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -32,3 +32,4 @@ parameters: checkBenevolentUnionTypes: true checkAlwaysTrueCheckTypeFunctionCall: true checkAlwaysTrueStrictComparison: true + checkUninitializedProperties: true