From 96b3c9c8637b1e16d067f1d7aaa805d96996fa73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Mon, 22 Jan 2024 22:29:09 +0100 Subject: [PATCH] Ignore access to constants like self::MANUAL on \Nette\Http\UserStorage UserStorage implements Nette\Security\IUserStorage and the constants were defined on that interface but the interface was removed in nette/security 3.2, and even \Nette\Http\UserStorage is deprecated. --- site/phpstan-vendor.neon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/phpstan-vendor.neon b/site/phpstan-vendor.neon index 7df1da75b..a78a8ea29 100644 --- a/site/phpstan-vendor.neon +++ b/site/phpstan-vendor.neon @@ -41,6 +41,10 @@ parameters: - vendor/nette/application/src/Bridges/ApplicationDI/LatteExtension.php - vendor/nette/application/src/Bridges/ApplicationLatte/UIMacros.php - vendor/nette/forms/src/Bridges/FormsLatte/FormMacros.php + - + message: '#^Cannot access constant [A-Z_]+ on Nette\\Http\\UserStorage#' + paths: + - vendor/nette/http/src/Http/UserStorage.php # Nette\Security\IUserStorage removed in nette/security v3.2.0 disallowedFunctionCalls: # local disallowed-calls.neon