Skip to content

Deprecated message in sfFormField  #373

Closed
@DavidGoodwin

Description

@DavidGoodwin

Hi,

Optional parameter $parent declared before required parameter $value is implicitly treated as a required parameter in lib/form/sfFormField.class.php on line 44

public function __construct(sfWidgetForm $widget, ?sfFormField $parent = null, $name, $value, ?sfValidatorError $error = null)

I'm not sure what PHP's behavior is with this - should name+value be made optional, or should $parent not be optional?

Still it'd be nice to not see this being reported in our server logs ;-)

image

TIA

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