php-translation / extractor

Extracts translation strings from source code
MIT License
126 stars 33 forks source link

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

Open kevinvergauwen opened 4 years ago

kevinvergauwen commented 4 years ago

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.