mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176
Remove unused addNodeAfterNode(), return nodes instead (#4023)
This commit is contained in:
parent
28d2a3ced0
commit
9fd6682367
@ -57,7 +57,6 @@ final class NodesToAddCollector implements NodeCollectorInterface
|
||||
return $this->nodesToAddBefore !== [];
|
||||
}
|
||||
/**
|
||||
* @api
|
||||
* @deprecated
|
||||
* @internal Return created nodes right in refactor() method to keep context instead.
|
||||
*/
|
||||
@ -87,6 +86,19 @@ final class NodesToAddCollector implements NodeCollectorInterface
|
||||
$objectHash = \spl_object_hash($node);
|
||||
unset($this->nodesToAddBefore[$objectHash]);
|
||||
}
|
||||
/**
|
||||
* @deprecated
|
||||
* @api downgrade
|
||||
* @deprecated Return created nodes right in refactor() method to keep context instead.
|
||||
* @param Node[] $newNodes
|
||||
*/
|
||||
public function addNodesBeforeNode(array $newNodes, Node $positionNode) : void
|
||||
{
|
||||
foreach ($newNodes as $newNode) {
|
||||
$this->addNodeBeforeNode($newNode, $positionNode);
|
||||
}
|
||||
$this->rectorChangeCollector->notifyNodeFileInfo($positionNode);
|
||||
}
|
||||
private function resolveNearestStmtPosition(Node $node) : string
|
||||
{
|
||||
if ($node instanceof Stmt) {
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd413dc15e6cbe5ac10f5fe6fd06711fcb7267a0b';
|
||||
public const PACKAGE_VERSION = 'e2213f21762d74946a34197921aa905623493e8c';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-05-30 09:02:00';
|
||||
public const RELEASE_DATE = '2023-05-30 08:12:20';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -15,7 +15,7 @@ final class RectorKernel
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private const CACHE_KEY = 'v42';
|
||||
private const CACHE_KEY = 'v41';
|
||||
/**
|
||||
* @var \Symfony\Component\DependencyInjection\ContainerInterface|null
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitbe76d268641af48f696189dc729ca4f0::getLoader();
|
||||
return ComposerAutoloaderInitb6dbd2a8683eeb5847e3cfa69fe34fb6::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitbe76d268641af48f696189dc729ca4f0
|
||||
class ComposerAutoloaderInitb6dbd2a8683eeb5847e3cfa69fe34fb6
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitbe76d268641af48f696189dc729ca4f0
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitbe76d268641af48f696189dc729ca4f0', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb6dbd2a8683eeb5847e3cfa69fe34fb6', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitbe76d268641af48f696189dc729ca4f0', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb6dbd2a8683eeb5847e3cfa69fe34fb6', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitbe76d268641af48f696189dc729ca4f0::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitbe76d268641af48f696189dc729ca4f0::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitbe76d268641af48f696189dc729ca4f0
|
||||
class ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3085,9 +3085,9 @@ class ComposerStaticInitbe76d268641af48f696189dc729ca4f0
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitbe76d268641af48f696189dc729ca4f0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitbe76d268641af48f696189dc729ca4f0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitbe76d268641af48f696189dc729ca4f0::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb6dbd2a8683eeb5847e3cfa69fe34fb6::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user