![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/rector/rector/src/functions/ |
<?php declare (strict_types=1); namespace RectorPrefix202308; use PhpParser\Node; use PhpParser\PrettyPrinter\Standard; // @deprecated, use dump() or dd() instead if (!\function_exists('dump_node')) { /** * @return never * @param mixed $variable */ function dump_node($variable, int $depth = 2) { \trigger_error('This function is deprecated, to avoid enforcing of Rector debug package. Use your own favorite debugging package instead'); exit; } } if (!\function_exists('print_node')) { /** * @param \PhpParser\Node|mixed[] $node */ function print_node($node) : void { $standard = new Standard(); $nodes = \is_array($node) ? $node : [$node]; foreach ($nodes as $node) { $printedContent = $standard->prettyPrint([$node]); \var_dump($printedContent); } } }