Skip to content

Commit

Permalink
Updated Rector to commit 50a5bb4057387d3053c5ea1ecf22286ea04dff36
Browse files Browse the repository at this point in the history
rectorphp/rector-src@50a5bb4 [BUGFIX] Ensure proper reprint with attributes for finalized classes (#4585)
  • Loading branch information
TomasVotruba committed Jul 23, 2023
1 parent 9e3dde0 commit 855f7c2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Rector\Core\Rector\AbstractRector;
use Rector\Core\Reflection\ReflectionResolver;
use Rector\FamilyTree\Reflection\FamilyRelationsAnalyzer;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\Privatization\NodeManipulator\VisibilityManipulator;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
Expand Down Expand Up @@ -111,6 +112,10 @@ public function refactor(Node $node) : ?Node
if ($childrenClassReflections !== []) {
return null;
}
if ($node->attrGroups !== []) {
// improve reprint with correct newline
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
}
$this->visibilityManipulator->makeFinal($node);
return $node;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'a7cd7eda65894aea11ca012cac8ea4a29fb0a051';
public const PACKAGE_VERSION = '50a5bb4057387d3053c5ea1ecf22286ea04dff36';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-22 14:06:03';
public const RELEASE_DATE = '2023-07-23 09:38:14';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit6f2dabd27ad2dcf04ce3efd4f1c5e824::getLoader();
return ComposerAutoloaderInit077b26424264f408ebee9607753e1c37::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit6f2dabd27ad2dcf04ce3efd4f1c5e824
class ComposerAutoloaderInit077b26424264f408ebee9607753e1c37
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit6f2dabd27ad2dcf04ce3efd4f1c5e824', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit077b26424264f408ebee9607753e1c37', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit6f2dabd27ad2dcf04ce3efd4f1c5e824', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit077b26424264f408ebee9607753e1c37', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit077b26424264f408ebee9607753e1c37::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit077b26424264f408ebee9607753e1c37::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824
class ComposerStaticInit077b26424264f408ebee9607753e1c37
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -3020,9 +3020,9 @@ class ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6f2dabd27ad2dcf04ce3efd4f1c5e824::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit077b26424264f408ebee9607753e1c37::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit077b26424264f408ebee9607753e1c37::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit077b26424264f408ebee9607753e1c37::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 855f7c2

Please sign in to comment.