Skip to content

Commit 0cd9d4b

Browse files
committed
Make non enum classes final
1 parent 4ab7316 commit 0cd9d4b

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/ConstantExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Yann Eugoné <[email protected]>
1515
*/
16-
class ConstantExtractor
16+
final class ConstantExtractor
1717
{
1818
/**
1919
* @param string $pattern

src/DependencyInjection/CompilerPass/TaggedEnumCollectorCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/**
1212
* @author Yann Eugoné <[email protected]>
1313
*/
14-
class TaggedEnumCollectorCompilerPass implements CompilerPassInterface
14+
final class TaggedEnumCollectorCompilerPass implements CompilerPassInterface
1515
{
1616
/**
1717
* @inheritdoc

src/DependencyInjection/EnumExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* @author Yann Eugoné <[email protected]>
2222
*/
23-
class EnumExtension extends Extension
23+
final class EnumExtension extends Extension
2424
{
2525
/**
2626
* @inheritdoc

src/EnumRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* @author Yann Eugoné <[email protected]>
1212
*/
13-
class EnumRegistry
13+
final class EnumRegistry
1414
{
1515
/**
1616
* @var EnumInterface[]

src/Form/Extension/EnumTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @author Yann Eugoné <[email protected]>
1818
*/
19-
class EnumTypeGuesser extends ValidatorTypeGuesser
19+
final class EnumTypeGuesser extends ValidatorTypeGuesser
2020
{
2121
/**
2222
* @inheritdoc

src/Form/Type/EnumType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @author Yann Eugoné <[email protected]>
1515
*/
16-
class EnumType extends AbstractType
16+
final class EnumType extends AbstractType
1717
{
1818
/**
1919
* @var EnumRegistry

src/Validator/Constraints/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* @author Yann Eugoné <[email protected]>
1414
*/
15-
class Enum extends Choice
15+
final class Enum extends Choice
1616
{
1717
/**
1818
* @var string

src/Validator/Constraints/EnumValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @author Yann Eugoné <[email protected]>
1515
*/
16-
class EnumValidator extends ChoiceValidator
16+
final class EnumValidator extends ChoiceValidator
1717
{
1818
/**
1919
* @var EnumRegistry

src/YokaiEnumBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* @author Yann Eugoné <[email protected]>
1414
*/
15-
class YokaiEnumBundle extends Bundle
15+
final class YokaiEnumBundle extends Bundle
1616
{
1717
/**
1818
* @inheritdoc

0 commit comments

Comments
 (0)