symfony/symfony-docs — Issue #1048: Typo in cookbook code example
Author: mvirtanen
Created: 2012-01-31 15:08:05+00:00
State: open

On page: http://symfony.com/doc/current/cookbook/form/create_custom_field_type.html

Syntax error in code example:

public function getDefaultOptions(array $options)
{
return array(
'choices' => $this->genderChoices;
);
}

Correct code should probably be:

public function getDefaultOptions(array $options)
{
return array(
'choices' => $this->genderChoices,
);
}