Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsunday committed Nov 22, 2023
1 parent 676cf49 commit be62a8c
Show file tree
Hide file tree
Showing 11 changed files with 1,541 additions and 675 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-deprecation-rules": "^1.1",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
Expand Down
15 changes: 7 additions & 8 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

parameters:
# You can currently choose from 10 levels (0 is the loosest and 9 is the strictest).
level: 9
# You can currently choose from 10 levels (0 is the loosest and "max" is the strictest).
level: max

paths:
- src
Expand All @@ -13,11 +17,6 @@ parameters:
excludePaths:
- vendor/

checkGenericClassInNonGenericObjectType: false
treatPhpDocTypesAsCertain: false

# Ignored errors
ignoreErrors:
- "#^Cannot access offset (.*) on mixed.$#"
- "#^Offset 'children' does not exist on array(.*).$#"
- "#^Call to an undefined method (.*)Iterator(.*).$#"
- '#^Call to an undefined method Fisharebest\\Webtrees\\Module\\ModuleCustomInterface\:\:assetUrl\(\).$#'
Loading

0 comments on commit be62a8c

Please sign in to comment.