Skip to content

Commit 221cceb

Browse files
committed
enabled strict PHPStan analysis parameters
Added 9 strict analysis parameters to extension.neon to enforce stricter type checking in Nette libraries: callable signatures, function/class name casing, nullable types in signatures and PHPDocs, redundant conditions, and @var tag validation.
1 parent cfc1677 commit 221cceb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

extension.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
parameters:
2+
checkMissingCallableSignature: true
3+
checkFunctionNameCase: true
4+
checkInternalClassCaseSensitivity: true
5+
reportMaybesInMethodSignatures: true
6+
reportMaybesInPropertyPhpDocTypes: true
7+
reportStaticMethodSignatures: true
8+
reportAlwaysTrueInLastCondition: true
9+
reportWrongPhpDocTypeInVarTag: true
10+
reportAnyTypeWideningInVarTag: true
211

312
fileExtensions:
413
- php

0 commit comments

Comments
 (0)