Wrong @param type for Helper::choices_rich_snippet_types()

#382409
  • Resolved Dovid Levine
    Rank Math free

    Hey ya’ll.

    I’m working (still very early stages) on a free WPGraphQL extension for Rank Math, and noticed that Helper::choices_rich_snippet_types() is throwing a static analysis error.

    That’s because the docblock defines the $none param as a boolean, when it should be @param false|string $none Add none option to the list. since the off type is only returned if a (string) description is provided to the param.

    Obviously check yourself, but I confirmed only strings are being passed in the core plugin (I dont have PRO yet).

    Best,

    David

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for bringing this issue to our attention. We’ll get that DocBlock fixed in a future update for Rank Math.

    If there’s anything else, please let us know.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Wrong @param type for Helper::choices_rich_snippet_types()’ is closed to new replies.