mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
Initial extension requirements, will eventually have stubs
This commit is contained in:
parent
3da450c91a
commit
ca2ac10c17
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
|
Loading…
x
Reference in New Issue
Block a user