Skip to content

Commit c270319

Browse files
Use ::class whenever it's possible
1 parent 5a3b572 commit c270319

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

forms.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,11 +659,12 @@ the choice is ultimately up to you.
659659
following to your form type class::
660660

661661
use Symfony\Component\OptionsResolver\OptionsResolver;
662+
use AppBundle\Entity\Task;
662663

663664
public function configureOptions(OptionsResolver $resolver)
664665
{
665666
$resolver->setDefaults(array(
666-
'data_class' => 'AppBundle\Entity\Task',
667+
'data_class' => Task::class,
667668
));
668669
}
669670

0 commit comments

Comments
 (0)