Skip to content

Commit

Permalink
Ignore access to constants like self::MANUAL on \Nette\Http\UserStorage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spaze committed Jan 22, 2024
1 parent e920b65 commit 96b3c9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/phpstan-vendor.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96b3c9c

Please sign in to comment.