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

Implement phpstan 5 #399

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

Implement phpstan 5 #399

wants to merge 18 commits into from

Conversation

Lainow
Copy link
Contributor

@Lainow Lainow commented Jun 5, 2024

No description provided.

hook.php Outdated Show resolved Hide resolved
inc/autoupdatesysteminjection.class.php Outdated Show resolved Hide resolved
inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
@Lainow Lainow requested a review from stonebuzz June 5, 2024 12:56
Copy link
Contributor

@Rom1-B Rom1-B left a comment

Choose a reason for hiding this comment

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

There are a lot of @phpstan-ignore..., we can have a few, but >50 is a lot.
If level 5 is too ambitious, maybe we need to validate an intermediate level first?

inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
inc/injectiontype.class.php Outdated Show resolved Hide resolved
inc/injectiontype.class.php Outdated Show resolved Hide resolved
inc/model.class.php Outdated Show resolved Hide resolved
@Lainow Lainow requested a review from Rom1-B June 10, 2024 08:33
inc/model.class.php Outdated Show resolved Hide resolved
inc/model.class.php Outdated Show resolved Hide resolved
@Lainow Lainow requested a review from Rom1-B June 12, 2024 08:32
Comment on lines 82 to 83
* @param mixed $fic
* @param mixed $data
Copy link
Contributor

Choose a reason for hiding this comment

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

mixed should be avoided, as it gives no indication of what is expected and on higher levels of PHPstan, it raises an error.

$fic doesn't seem to be used, so it's not important for this one. See if it can be removed, but in another dedicated PR.

inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
inc/model.class.php Outdated Show resolved Hide resolved
inc/model.class.php Outdated Show resolved Hide resolved
inc/model.class.php Outdated Show resolved Hide resolved
inc/profile.class.php Outdated Show resolved Hide resolved
inc/profile.class.php Outdated Show resolved Hide resolved
inc/commoninjectionlib.class.php Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants