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:
Alexandre Alapetite 2024-04-11 09:09:50 +02:00 committed by GitHub
parent 45a66b0de7
commit 01f3473368
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
45 changed files with 197 additions and 111 deletions

24
phpstan-third-party.neon Normal file
View 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