Skip to content
Snippets Groups Projects

Phpstan fixes

Merged Matthias Larisch requested to merge phpstan-fixes into master
All threads resolved!

What does this MR do?

Increase the phpstan static analysis tool check level to 2 (from 0, where 10 is most verbose) and fix all upcoming issues.

For a few cases, I was actually unable to "properly" fix because I didn't get the logic, so I just went around the problem (for example for a potentially undefined variable access in quizSomething I added the check and implemented the current PHP behaviour manually)

How confident are you it won't break things if deployed?

Pretty sure, as it is a bunch of super small fixes.

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
  • Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Chris Oelmueller
  • Chris Oelmueller approved this merge request

    approved this merge request

  • Matthias Larisch added 2 commits

    added 2 commits

    • aad90e16 - Lower indendation level in RegionControl::index
    • d1f2d249 - simplify logic in WorkGroupControl::edit

    Compare with previous version

  • Matthias Larisch resolved all threads

    resolved all threads

  • Alex added forDev label

    added forDev label

  • Please register or sign in to reply
    Loading