Skip to content

Commit a4006bc

Browse files
andreaswolfsimonschaufi
authored andcommitted
[TASK] Make traversal methods final in AbstractTypoScriptFractor
1 parent 1caa2ac commit a4006bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/fractor-typoscript/src/AbstractTypoScriptFractor.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ abstract class AbstractTypoScriptFractor implements TypoScriptFractor
1818
/**
1919
* @param list<Statement> $statements
2020
*/
21-
public function beforeTraversal(File $file, array $statements): void
21+
final public function beforeTraversal(File $file, array $statements): void
2222
{
2323
$this->file = $file;
2424
}
2525

2626
/**
2727
* @return Statement|list<Statement>|int
2828
*/
29-
public function enterNode(Statement $node): Statement|array|int
29+
final public function enterNode(Statement $node): Statement|array|int
3030
{
3131
$result = $this->refactor($node);
3232

@@ -40,14 +40,14 @@ public function enterNode(Statement $node): Statement|array|int
4040
return $result;
4141
}
4242

43-
public function leaveNode(Statement $node): void
43+
final public function leaveNode(Statement $node): void
4444
{
4545
}
4646

4747
/**
4848
* @param list<Statement> $statements
4949
*/
50-
public function afterTraversal(array $statements): void
50+
final public function afterTraversal(array $statements): void
5151
{
5252
}
5353
}

0 commit comments

Comments
 (0)