From 350edf398c55b472e19a3017de9b4d2d3420b9e4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 10 Apr 2024 15:33:43 +0200 Subject: PHP 8.3 #[\Override] (#6273) * PHP 8.3 #[\Override] https://php.watch/versions/8.3/override-attr With PHPStan `checkMissingOverrideMethodAttribute` https://phpstan.org/config-reference#checkmissingoverridemethodattribute And modified the call to phpstan-next on the model of https://github.com/FreshRSS/Extensions/pull/228 (more robust than the find method, which gave some strange errors) * Update extension example accordingly --- phpstan-next.neon | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 phpstan-next.neon (limited to 'phpstan-next.neon') diff --git a/phpstan-next.neon b/phpstan-next.neon new file mode 100644 index 000000000..0cc7f5eac --- /dev/null +++ b/phpstan-next.neon @@ -0,0 +1,18 @@ +includes: + - phpstan.neon + +parameters: + level: 9 + excludePaths: + analyse: + # TODO: Update files below and remove them from this list + - app/Controllers/configureController.php + - app/Controllers/importExportController.php + - app/Models/DatabaseDAO.php + - app/Models/Entry.php + - app/Models/Feed.php + - app/Services/ImportService.php + - app/views/configure/archiving.phtml + - app/views/helpers/feed/update.phtml + - lib/Minz/Helper.php + - lib/Minz/Request.php -- cgit v1.2.3