Skip to content

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

Merged
CaMer0n merged 1 commit into
e107inc:masterfrom
Deltik:fix/4929
Dec 26, 2022
Merged

#4929: Fix type mismatch in usage of e107forum::getForumClassMembers()#4931
CaMer0n merged 1 commit into
e107inc:masterfrom
Deltik:fix/4929

Conversation

@Deltik

@Deltik Deltik commented Dec 25, 2022

Copy link
Copy Markdown
Member

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 CaMer0n and Moc December 25, 2022 11:01
@qlty-cloud-legacy

Copy link
Copy Markdown

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

CaMer0n commented Dec 26, 2022

Copy link
Copy Markdown
Member

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
Deltik pushed a commit that referenced this pull request Jul 26, 2026
Fixes #4929: Fix type mismatch in usage of `e107forum::getForumClassMembers()`
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