Skip to content

Commit 07d7c44

Browse files
committed
Revert "Un-finalize Printer"
This reverts commit 1abeeb7.
1 parent 1abeeb7 commit 07d7c44

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

build/PHPStan/Build/FinalClassRule.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use PHPStan\Analyser\Scope;
77
use PHPStan\File\FileHelper;
88
use PHPStan\Node\InClassNode;
9-
use PHPStan\Node\Printer\Printer;
109
use PHPStan\Reflection\FunctionVariant;
1110
use PHPStan\Reflection\ExtendedFunctionVariant;
1211
use PHPStan\Reflection\Php\DummyParameter;
@@ -55,7 +54,6 @@ public function processNode(Node $node, Scope $scope): array
5554
ExtendedFunctionVariant::class,
5655
DummyParameter::class,
5756
PhpFunctionFromParserNodeReflection::class,
58-
Printer::class,
5957
], true)) {
6058
return [];
6159
}

src/Node/Printer/Printer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* @api
2424
*/
25-
class Printer extends Standard
25+
final class Printer extends Standard
2626
{
2727

2828
public function __construct()

0 commit comments

Comments
 (0)