extractor icon indicating copy to clipboard operation
extractor copied to clipboard

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

Open kevinvergauwen opened this issue 6 years ago • 0 comments

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.

kevinvergauwen avatar Nov 29 '19 09:11 kevinvergauwen