Skip to content

Notice: Undefined offset: 0 in FormTypeLabelImplicit.php line 37 #136

@kevinvergauwen

Description

@kevinvergauwen

If you call a service method "create" or "add" without arguments in a form type buildForm method you get a notice "Undefined offset: 0" in FormTypeLabelImplicit.php line 37.

public function buildForm(FormBuilderInterface $builder, array $options)
{
    // ...
    $someService->create();    
    // ...
}

count($node->args) should be added as extra condition to the if clause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions