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
This commit is contained in:
Alexandre Alapetite 2024-04-07 17:06:35 +02:00
parent 9f21984b8c
commit cc6bf0d1e6
No known key found for this signature in database
GPG key ID: A24378C38E812B23
45 changed files with 192 additions and 100 deletions

View file

@ -1,6 +1,7 @@
<?php
declare(strict_types=1);
class FreshExtension_quickCollapse_Controller extends Minz_ActionController {
final class FreshExtension_quickCollapse_Controller extends Minz_ActionController {
/** @var QuickCollapse\View */
protected $view;

View file

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace QuickCollapse;
class View extends \Minz_View {
final class View extends \Minz_View {
public string $icon_url_in = '';
public string $icon_url_out = '';

View file

@ -2,7 +2,8 @@
declare(strict_types=1);
class QuickCollapseExtension extends Minz_Extension {
final class QuickCollapseExtension extends Minz_Extension {
#[Override]
public function init(): void {
$this->registerTranslates();
$this->registerViews();

View file

@ -2,7 +2,7 @@
"name": "Quick Collapse",
"author": "romibi and Marien Fressinaud",
"description": "Quickly change from folded to unfolded articles",
"version": "0.2",
"version": "0.2.1",
"entrypoint": "QuickCollapse",
"type": "user"
}