prettyPrint([$node]); \var_dump($printedContent); } } } if (!\function_exists('dump_node')) { /** * @param Node|Node[] $node */ function dump_node($node) : void { $symfonyStyle = Container::getInstance()->make(SymfonyStyleFactory::class)->create(); // we turn up the verbosity so it's visible in tests overriding the // default which is to be quite during tests $symfonyStyle->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); $symfonyStyle->newLine(); $nodePrinter = new NodePrinter($symfonyStyle); $nodePrinter->printNodes($node); } }