I'm using FPDI with TCPDF integration, and the TCPDF docblocks are using a non-standard docblock format. This is causing the editor to incorrectly label parameters as having the void type. An example docblock from TCPDF's SetXY() function:

/**
 * Defines the abscissa and ordinate of the current position.
 * If the passed values are negative, they are relative respectively to the right and bottom of the page.
 * @param $x (float) The value of the abscissa.
 * @param $y (float) The value of the ordinate.
 * @param $rtloff (boolean) if true always uses the page top-left corner as origin of axis.
 * @public
 * @since 1.2
 * @see SetX(), SetY()
 */

Since the type information is in parentheses after the variable name, the arguments are incorrectly labeled as having a void type. Can something be done to allow the editor to mark it as mixed, or even pick up on the correct type instead?

    Hi, Thanks for the question.

    Currently, there is no configuration for that.

    We'll fix the editor to handle the types in parentheses - we may publish a Pre-Release within today, so you can try it.

    Thanks!

    Please try the Pre-release v1.13.10301. It handles the types correctly.

    Let us know if it works for you.

    Thanks!

    awesome! thanks for the feedback. And please let us know if there would be anything else.

      Write a Reply...