Skip to content

Commit

Permalink
bug #30028 [Form] fix some docblocks and type checks (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

[Form] fix some docblocks and type checks

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #30018
| License       | MIT
| Doc PR        |

Commits
-------

ec0c371 [Form] fix some docblocks and type checks
  • Loading branch information
fabpot committed Jan 30, 2019
2 parents 823a95d + ec0c371 commit 46edcee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Form/AbstractType.php
Expand Up @@ -52,7 +52,7 @@ public function configureOptions(OptionsResolver $resolver)
*/
public function getBlockPrefix()
{
return StringUtil::fqcnToBlockPrefix(\get_class($this));
return StringUtil::fqcnToBlockPrefix(\get_class($this)) ?: '';
}

/**
Expand Down

0 comments on commit 46edcee

Please sign in to comment.