Skip to content

Commit cb40097

Browse files
committed
Fix CS
1 parent cf4fc31 commit cb40097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function configureOptions(OptionsResolver $resolver)
5252
*/
5353
public function getBlockPrefix()
5454
{
55-
return StringUtil::fqcnToBlockPrefix(\get_class($this)) ?: '';
55+
return StringUtil::fqcnToBlockPrefix(static::class) ?: '';
5656
}
5757

5858
/**

Extension/Core/Type/ChoiceType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function configureOptions(OptionsResolver $resolver)
273273

274274
// Set by the user
275275
if (true !== $choicesAsValues) {
276-
throw new \RuntimeException(sprintf('The "choices_as_values" option of the %s should not be used. Remove it and flip the contents of the "choices" option instead.', \get_class($this)));
276+
throw new \RuntimeException(sprintf('The "choices_as_values" option of the %s should not be used. Remove it and flip the contents of the "choices" option instead.', static::class));
277277
}
278278

279279
@trigger_error('The "choices_as_values" option is deprecated since Symfony 3.1 and will be removed in 4.0. You should not use it anymore.', E_USER_DEPRECATED);

0 commit comments

Comments
 (0)