mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-13 20:12:07 +01:00
Updated Rector to commit 03936151bbb69f0d841d6bdd57d4602c257375d1
03936151bb
exclude functions from scoping
This commit is contained in:
parent
6f88411381
commit
44c8e9ed71
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'abaf47c828502d09a968590292aafe71d34e3e17';
|
||||
public const PACKAGE_VERSION = '03936151bbb69f0d841d6bdd57d4602c257375d1';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-01-27 09:32:19';
|
||||
public const RELEASE_DATE = '2025-01-27 19:40:47';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -1,39 +1,46 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202501;
|
||||
declare(strict_types=1);
|
||||
|
||||
use RectorPrefix202501\Illuminate\Container\Container;
|
||||
use Illuminate\Container\Container;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\PrettyPrinter\Standard;
|
||||
use Rector\Console\Style\SymfonyStyleFactory;
|
||||
use Rector\Util\NodePrinter;
|
||||
use RectorPrefix202501\Symfony\Component\Console\Output\OutputInterface;
|
||||
if (!\function_exists('print_node')) {
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
if (! function_exists('print_node')) {
|
||||
/**
|
||||
* @param Node|Node[] $node
|
||||
*/
|
||||
function print_node($node) : void
|
||||
function print_node($node): void
|
||||
{
|
||||
$standard = new Standard();
|
||||
$nodes = \is_array($node) ? $node : [$node];
|
||||
|
||||
$nodes = is_array($node) ? $node : [$node];
|
||||
|
||||
foreach ($nodes as $node) {
|
||||
$printedContent = $standard->prettyPrint([$node]);
|
||||
\var_dump($printedContent);
|
||||
var_dump($printedContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!\function_exists('dump_node')) {
|
||||
|
||||
if (! function_exists('dump_node')) {
|
||||
/**
|
||||
* @param Node|Node[] $node
|
||||
*/
|
||||
function dump_node($node) : void
|
||||
function dump_node($node): void
|
||||
{
|
||||
$symfonyStyle = Container::getInstance()->make(SymfonyStyleFactory::class)->create();
|
||||
$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);
|
||||
}
|
||||
|
2
vendor/scoper-autoload.php
vendored
2
vendor/scoper-autoload.php
vendored
@ -14,7 +14,7 @@ $loader = (static function () {
|
||||
// Restore the backup and ensure the excluded files are properly marked as loaded
|
||||
$GLOBALS['__composer_autoload_files'] = \array_merge(
|
||||
$existingComposerAutoloadFiles,
|
||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
|
||||
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '882bf1849978e9c154a07cbcdc990145'], true)
|
||||
);
|
||||
|
||||
return $loader;
|
||||
|
Loading…
x
Reference in New Issue
Block a user