Initial extension requirements, will eventually have stubs

This commit is contained in:
Matthew Kilgore 2021-11-24 22:58:58 -05:00
parent 3da450c91a
commit ca2ac10c17
3 changed files with 40 additions and 0 deletions

11
php-packages/phpstan/.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
/vendor
composer.lock
composer.phar
.DS_Store
Thumbs.db
tests/.phpunit.result.cache
/tests/integration/tmp
.vagrant
.idea/*
.vscode
js/coverage-ts

View File

@ -0,0 +1,16 @@
{
"name": "flarum/phpstan",
"description": "Flarum PHPStan extension",
"minimum-stability": "stable",
"license": "MIT",
"require": {
"phpstan/phpstan-php-parser": "^1.0"
},
"extra": {
"phpstan": {
"includes": [
"extension.neon"
]
}
}
}

View File

@ -0,0 +1,13 @@
inclues:
- vendor/phpstan/phpstan-php-parser/extension.neon
parameters:
universalObjectCratesClasses:
- Illuminate\Http\Request
earlyTerminatingFunctionCalls:
- abort
- dd
excludePaths:
- *.blade.php
mixinExcludeClasses:
- Eloquent
checkGenericClassInNonGenericObjectType: false