mirror of
https://github.com/flarum/framework.git
synced 2025-06-07 17:24:33 +08:00
Initial extension requirements, will eventually have stubs
This commit is contained in:
11
php-packages/phpstan/.gitignore
vendored
Normal file
11
php-packages/phpstan/.gitignore
vendored
Normal 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
|
16
php-packages/phpstan/composer.json
Normal file
16
php-packages/phpstan/composer.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
php-packages/phpstan/extension.neon
Normal file
13
php-packages/phpstan/extension.neon
Normal 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
|
Reference in New Issue
Block a user