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

#4929: Fix type mismatch in usage of e107forum::getForumClassMembers() #4931

Merged
merged 1 commit into from Dec 26, 2022

Conversation

Deltik
Copy link
Member

@Deltik Deltik commented Dec 25, 2022

Motivation and Context

Fixes: #4929

Description

e107forum::getForumClassMembers() is now documented and deprecated because it has unintuitive return values.

The single usage of this method in plugin_forum_viewforum_shortcodes::sc_viewable_by() has been corrected to account for the mixed return type.

How Has This Been Tested?

Manually verified that there is no uncaught exception when running the steps to reproduce #4929:

#4929 manual test

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist

…Members()`

Also, `e107forum::getForumClassMembers()` is now documented and
deprecated because it has unintuitive return values.

Fixes: e107inc#4929
@Deltik Deltik requested review from Moc and CaMer0n December 25, 2022 11:01
@codeclimate
Copy link

codeclimate bot commented Dec 25, 2022

Code Climate has analyzed commit 566cde0 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 0.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 34.7% (0.1% change).

View more on Code Climate.

@CaMer0n
Copy link
Member

CaMer0n commented Dec 26, 2022

Thank you @Deltik !

@CaMer0n CaMer0n merged commit bed9c3d into e107inc:master Dec 26, 2022
@Deltik Deltik deleted the fix/4929 branch December 26, 2022 19:40
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.

Fatal error: Uncaught TypeError in viewforum_shortcodes.php
2 participants