Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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