Skip to content

FieldtypeOptions::addOptions() argument incompatible with SelectableOptionManager::addOptions() #473

@Toutouwai

Description

@Toutouwai

Short description of the issue

The second argument supplied to FieldtypeOptions::addOptions() must be a SelectableOptionsArray. This method then passes that argument to SelectableOptionManager::addOptions().

This causes a type error because that method has a type declaration of array for its second argument.

TypeError: Argument 2 passed to ProcessWire\SelectableOptionManager::addOptions() must be of the type array, object given, called in ...\wire\modules\Fieldtype\FieldtypeOptions\FieldtypeOptions.module on line 504

Setup/Environment

  • ProcessWire version: 3.0.88

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions