Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @baxterkh It is not a comparison problem. The term_permalink() function in plugin expects an integer for its $term_id parameter. Interestingly, I am not seeing any warnings or errors being triggered by WordPress regarding this incorrect parameter type.

    Thread Starter baxterkh

    (@baxterkh)

    @sasiddiqui if this method expects an integer value, please require it by declaring parameter type like:

    public function term_permalink( int $term_id ) {

    I cannot remember which kind of problem was here after 4 months. Please either add parameter type or convert it to int.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Type Comparison fix’ is closed to new replies.