Skip to content

Commit 4f46601

Browse files
committed
Enable phpstan-strict-rules
1 parent aafd34f commit 4f46601

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"require-dev": {
3636
"nette/tester": "^2.5.4",
3737
"phpstan/phpstan": "^2.1.12",
38+
"phpstan/phpstan-strict-rules": "^2.0.4",
3839
"spaze/phpstan-disallowed-calls": "^4.5.0",
3940
"tracy/tracy": "^2.10.9"
4041
},

composer.lock

Lines changed: 49 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ parameters:
2424
count: 1
2525
path: src/GrammarProcessing/LexicalGrammar.php
2626

27+
-
28+
message: '#^Only numeric types are allowed in \-, int\|false given on the right side\.$#'
29+
identifier: minus.rightNonNumeric
30+
count: 1
31+
path: src/GrammarProcessing/LocationGetter.php
32+
2733
-
2834
message: '#^Parameter \$column of class Vojtechdobes\\GrammarProcessing\\Location constructor expects int\<0, max\>, int given\.$#'
2935
identifier: argument.type

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
includes:
22
- phpstan-baseline.neon
3+
- vendor/phpstan/phpstan-strict-rules/rules.neon
34
- vendor/spaze/phpstan-disallowed-calls/extension.neon
45

56
parameters:

0 commit comments

Comments
 (0)