Skip to content

Commit 98f8f98

Browse files
committed
Ensure PHPStan works properly and fix errors it flagged
1 parent c19f2b8 commit 98f8f98

File tree

7 files changed

+461
-6
lines changed

7 files changed

+461
-6
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
/package.json
1919
/phpcs-compat.xml
2020
/phpcs.xml
21+
/phpstan.neon.dist
2122
/README.md

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
/package.json export-ignore
1616
/phpcs-compat.xml export-ignore
1717
/phpcs.xml export-ignore
18+
/phpstan.neon.dist export-ignore
1819
/README.md export-ignore

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"10up/wp-framework": "~1.0.0"
1515
},
1616
"require-dev": {
17+
"10up/phpcs-composer": "^3.0",
1718
"szepeviktor/phpstan-wordpress": "^2.0.1",
1819
"phpstan/extension-installer": "1.4.x-dev",
1920
"php-stubs/wp-cli-stubs": "dev-master",

0 commit comments

Comments
 (0)