-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passage to level 6 of PHPstan verifications, various fixes and removal of unused variables and functions #727
Conversation
M0rgan01
commented
Jun 17, 2024
•
edited
Loading
edited
Questions | Answers |
---|---|
Description? | Passage to level 6 of PHPstan verifications, various fixes and removal of unused variables and functions |
Type? | improvement |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | - |
Sponsor company | - |
How to test? | Module should works the same as before |
fb77d6b
to
578ae30
Compare
e5cdd6f
to
69990f7
Compare
/** | ||
* @var string contains hte url where to download the file | ||
* @var string contains the url to download the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄
* @param string $string Error message | ||
* @param bool $htmlentities By default at true for parsing error message with htmlentities | ||
*/ | ||
public static function displayError(string $string = 'Fatal error', bool $htmlentities = true): string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though modules are not subject to same SemVer constraints as the core because they are not supposed to be decorated, this is a little out of the scope of the PR
Two suggestions:
- Remove this and make this PR "only about PHPStan typing"
- Keep this but update the PR description 😉 and title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for 2
973c591
to
ef823ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @M0rgan01
Thank you for your PR, I tested it and it seems to works as expectd
Tested from :
1.7.8.9 to 1.7.8.11
1.7.8.9 to 8.1.7
8.0.5 to 8.1.7
8.1.5 to 8.1.7
8.1.7 to 9.0.0
8.1.5 to 9.0.0
8.0.5 to 9.0.0
Because the PR seems to works as expected, It's QA ✔️
Thank you