Skip to content

Incorrect phpdoc typing #158

@gronostajo

Description

@gronostajo

The method save takes an $image_type argument, which according to its phpdoc accepts a string. However the code expects it to be one of IMAGETYPE_* constants, which are integers. This causes static analyzers like PHPStan or Psalm to flag correct usage as erroneous. The fix is to simply update the phpdoc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions