Skip to content

Declaration of ProcessWire\InputfieldRecurringDates::___getConfigAllowContext(Field $field) must be compatible with ProcessWire\Inputfield::___getConfigAllowContext($field)  #1

@juergenweb

Description

@juergenweb

Hello,

first of all thank you for the module. I will definetly test it out.
Unfortunatelly I get the following error after I have installed the module.

Declaration of ProcessWire\InputfieldRecurringDates::___getConfigAllowContext() must be compatible with Inputfield::___getConfigAllowContext]($field) at InputfieldRecurringDates.module: line 190.

I guess the problem will be the type declaration 'Field' beside the parameter, which is not present in the original method you will find here:

https://github.com/processwire/processwire/blob/master/wire/core/Inputfield.php#L1810

As you can see you have written

___getConfigAllowContext(Field $field)

but the original method is written without the declaration

___getConfigAllowContext($field)

So removing the declaration would probably solve the issue.

Best regards Jürgen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions