Typehint some Controllers#5106
Merged
Alkarex merged 17 commits intoFreshRSS:edgefrom Mar 21, 2023
ColonelMoutarde:feature/add-typehinting-to-controllers
Merged
Typehint some Controllers#5106Alkarex merged 17 commits intoFreshRSS:edgefrom ColonelMoutarde:feature/add-typehinting-to-controllers
Alkarex merged 17 commits intoFreshRSS:edgefrom
ColonelMoutarde:feature/add-typehinting-to-controllers
Conversation
Alkarex
reviewed
Mar 4, 2023
Alkarex
reviewed
Mar 4, 2023
Alkarex
reviewed
Mar 4, 2023
Alkarex
reviewed
Mar 4, 2023
Alkarex
reviewed
Mar 8, 2023
Alkarex
reviewed
Mar 8, 2023
Alkarex
reviewed
Mar 8, 2023
Member
|
Good start, but this not level 9 (517 errors), and not even level 6 (87 errors). Example: $ vendor/bin/phpstan analyse --level 6 app/Controllers/
...
------ ------------------------------------------------------------------------------
Line tagController.php
------ ------------------------------------------------------------------------------
:108 Method FreshRSS_tag_Controller::renameAction() has no return type specified.
------ ------------------------------------------------------------------------------
...
[ERROR] Found 87 errorsCould you try to pass at least level 6 for the files you are addressing? I am wondering how did you test that this passed level 9? Maybe a wrong command? |
Contributor
Author
Hi, |
Member
Contributor
Author
|
Up to level 8 |
Member
|
Ok, looks good now. The command to check is something like: $ vendor/bin/phpstan analyse --level 6 app/Controllers/apiController.php app/Controllers/authController.php app/Controllers/categoryController.php app/Controllers/configureController.php app/Controllers/entryController.php app/Controllers/errorController.php app/Controllers/importExportController.php app/Controllers/javascriptController.php app/Controllers/statsController.php app/Controllers/subscriptionController.php app/Controllers/tagController.php
Note: Using configuration file /home/alexandre/GitHub/FreshRSS/phpstan.neon.
11/11 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Changes proposed in this pull request:
Pull request checklist: