Skip to content

Commit a2eb585

Browse files
authored
Merge pull request #14 from buildotter/chore/prepare-phpstan-2.0
chore: preparing for phpstan 2.0
2 parents 830d9ac + 47e2909 commit a2eb585

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"fakerphp/faker": "^1.23",
2020
"phpstan/phpstan": "^1.11",
2121
"phpstan/phpstan-phpunit": "^1.4",
22+
"phpstan/phpstan-strict-rules": "^1.6",
2223
"symfony/var-dumper": "^6.4"
2324
},
2425
"suggest": {

composer.lock

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

phpstan.dist.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
includes:
2+
- phar://phpstan.phar/conf/bleedingEdge.neon
3+
- vendor/phpstan/phpstan-strict-rules/rules.neon
24
- vendor/phpstan/phpstan-phpunit/extension.neon
35
- vendor/phpstan/phpstan-phpunit/rules.neon
46

@@ -9,3 +11,12 @@ parameters:
911
paths:
1012
- src/
1113
- tests/
14+
ignoreErrors:
15+
# We are purposely doing this to support the `::with` feature.
16+
# If one day we found another and better way to do this,
17+
# then we may stop ignoring this error.
18+
-
19+
message: '#Variable property access on [a-zA-Z0-9\\_]+.#'
20+
paths:
21+
- src/BuildableWithArgUnpacking.php
22+
- src/BuildableWithArray.php

0 commit comments

Comments
 (0)