New developer command to test all third-party extensions (#228)
* New developer command to test all third-party extensions * `composer run-script phpstan-third-party` * Rename the directory for generate.php to `third-party` instead of `tmp` * Take advantage of PHPStan checkMissingOverrideMethodAttribute https://phpstan.org/config-reference#checkmissingoverridemethodattribute * Detected and fixed bug in URL of https://github.com/tunbridgep/freshrss-invidious * Better syntax for registerHook * Fix static * #[\Override] * Static method
This commit is contained in:
parent
45a66b0de7
commit
01f3473368
45 changed files with 197 additions and 111 deletions
24
phpstan-third-party.neon
Normal file
24
phpstan-third-party.neon
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
parameters:
|
||||
level: 0
|
||||
treatPhpDocTypesAsCertain: false
|
||||
fileExtensions:
|
||||
- php
|
||||
- phtml
|
||||
paths:
|
||||
- ../FreshRSS
|
||||
- third-party/
|
||||
excludePaths:
|
||||
analyse:
|
||||
- ../FreshRSS
|
||||
- third-party/*/vendor/*
|
||||
analyseAndScan:
|
||||
- .git/
|
||||
- node_modules/
|
||||
- symbolic/
|
||||
- third-party/*/tests/*
|
||||
- tmp/
|
||||
- vendor/
|
||||
- xExtension-*
|
||||
dynamicConstantNames:
|
||||
- TYPE_GIT
|
||||
reportMaybesInPropertyPhpDocTypes: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue