mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-30 22:53:31 +00:00
[Tests] Remove tests/debug_functions.php (#1546)
This commit is contained in:
parent
3f80cd0543
commit
d1e885a03a
|
@ -52,7 +52,6 @@ parameters:
|
|||
- bin/generate-changelog.php
|
||||
|
||||
- */config.php
|
||||
- tests/debug_functions.php
|
||||
|
||||
# broken in PHPStan https://github.com/rectorphp/rector/runs/1305002460#step:5:56
|
||||
- packages/BetterPhpDocParser/ValueObject/PhpDocNode/AbstractTagValueNode.php
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\PrettyPrinter\Standard;
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
/**
|
||||
* @param Node|Node[] $node
|
||||
*/
|
||||
function print_node(Node | array $node): void
|
||||
{
|
||||
$standard = new Standard();
|
||||
|
||||
if (is_array($node)) {
|
||||
foreach ($node as $singleNode) {
|
||||
$printedContent = $standard->prettyPrint([$singleNode]);
|
||||
dump($printedContent);
|
||||
}
|
||||
} else {
|
||||
$printedContent = $standard->prettyPrint([$node]);
|
||||
dump($printedContent);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user