Skip to content
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

Merged
merged 14 commits into from
Jul 4, 2024

Conversation

M0rgan01
Copy link
Contributor

@M0rgan01 M0rgan01 commented Jun 17, 2024

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

@M0rgan01 M0rgan01 force-pushed the adding-typing branch 5 times, most recently from fb77d6b to 578ae30 Compare June 19, 2024 15:52
@M0rgan01 M0rgan01 added this to the 6.0.0 milestone Jun 20, 2024
@M0rgan01 M0rgan01 force-pushed the adding-typing branch 8 times, most recently from e5cdd6f to 69990f7 Compare June 21, 2024 13:24
@M0rgan01 M0rgan01 marked this pull request as ready for review June 21, 2024 13:58
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jun 24, 2024
/**
* @var string contains hte url where to download the file
* @var string contains the url to download the file
Copy link
Contributor

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
Copy link
Contributor

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:

  1. Remove this and make this PR "only about PHPStan typing"
  2. Keep this but update the PR description 😉 and title

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done for 2

@M0rgan01 M0rgan01 changed the title Passage to level 6 of PHPstan verifications Passage to level 6 of PHPstan verifications, various fixes and removal of unused variables and functions Jun 25, 2024
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jun 25, 2024
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jul 2, 2024
@M0rgan01 M0rgan01 force-pushed the adding-typing branch 4 times, most recently from 973c591 to ef823ab Compare July 2, 2024 20:42
Quetzacoalt91
Quetzacoalt91 previously approved these changes Jul 3, 2024
Copy link
Contributor

@AureRita AureRita left a 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

@Quetzacoalt91 Quetzacoalt91 merged commit 27489cc into PrestaShop:dev Jul 4, 2024
127 checks passed
@Quetzacoalt91 Quetzacoalt91 deleted the adding-typing branch July 4, 2024 15:19
@Quetzacoalt91
Copy link
Member

Merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants