Skip to content

Commit 9ab52bf

Browse files
committed
[!!!TASK] Make all classes final
This library has a very large number of extension points via interfaces and abstract classes. All other classes should not be extended by users and shall theirfor be marked as final. There are a few classes left that should also be marked as final but those require some extra attention.
1 parent f5d1968 commit 9ab52bf

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Bootstrap/DependencyInjection/BootstrapExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
use function dirname;
2323

24-
class BootstrapExtension extends Extension implements PrependExtensionInterface
24+
final class BootstrapExtension extends Extension implements PrependExtensionInterface
2525
{
2626
/** @param mixed[] $configs */
2727
public function load(array $configs, ContainerBuilder $container): void

src/Bootstrap/Directives/TabDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use function strtolower;
2828
use function strval;
2929

30-
class TabDirective extends SubDirective
30+
final class TabDirective extends SubDirective
3131
{
3232
public function getName(): string
3333
{

src/Bootstrap/Directives/TabsDirective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
use function is_string;
2929

30-
class TabsDirective extends SubDirective
30+
final class TabsDirective extends SubDirective
3131
{
3232
private int $tabsCounter = 0;
3333

src/Bootstrap/Nodes/AbstractTabNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getKey(): string
3535
{
3636
return $this->key;
3737
}
38-
38+
3939
public function isActive(): bool
4040
{
4141
return $this->active;

0 commit comments

Comments
 (0)