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

phpstan level 7 for user-info.php #5309

Merged

Conversation

ColonelMoutarde
Copy link
Contributor

Changes proposed in this pull request:

  • phpstan level 7 for user-info.php

Pull request checklist:

  • clear commit messages
  • code manually tested

@Alkarex Alkarex added this to the 1.22.0 milestone Apr 17, 2023
@Alkarex Alkarex added the System care Everything related to the system care label Apr 17, 2023
@Alkarex Alkarex merged commit 8cc8127 into FreshRSS:edge Apr 17, 2023
1 check passed
@@ -72,7 +87,7 @@
'last_user_activity' => FreshRSS_UserDAO::mtime($username),
'database_size' => $databaseDAO->size(),
'categories' => $catDAO->count(),
'feeds' => count($feedDAO->listFeedsIds()),
'feeds' => count($feedList === false ? [] : $feedList),
Copy link
Member

Choose a reason for hiding this comment

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

Simpler syntax, almost equivalent:

$feedList ?: []

@ColonelMoutarde ColonelMoutarde deleted the feature/phpstan-level-7-for-user-info branch May 3, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
System care Everything related to the system care
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants