Skip to content

Commit

Permalink
Updated Rector to commit 8c5cfafd4429765fecd1f3db9546cdb9abef080f
Browse files Browse the repository at this point in the history
rectorphp/rector-src@8c5cfaf FamilyRelationsAnalyzer: final classes can't have children (#4913)
  • Loading branch information
TomasVotruba committed Sep 5, 2023
1 parent e31a8c2 commit f4213d1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions packages/FamilyTree/Reflection/FamilyRelationsAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public function __construct(ReflectionProvider $reflectionProvider, PrivatesAcce
*/
public function getChildrenOfClassReflection(ClassReflection $desiredClassReflection) : array
{
if ($desiredClassReflection->isFinalByKeyword()) {
return [];
}
/** @var ClassReflection[] $classReflections */
$classReflections = $this->privatesAccessor->getPrivateProperty($this->reflectionProvider, 'classes');
$childrenClassReflections = [];
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 = '1812281273ff14f76b8b81ab5321ee4b7e656684';
public const PACKAGE_VERSION = '8c5cfafd4429765fecd1f3db9546cdb9abef080f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-09-05 02:44:17';
public const RELEASE_DATE = '2023-09-05 13:41:45';
/**
* @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 ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23::getLoader();
return ComposerAutoloaderInite42025df4221b1aa4e90629306b7a463::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 ComposerAutoloaderInitb30de7a076b8bd05a4938dd520c43a23
class ComposerAutoloaderInite42025df4221b1aa4e90629306b7a463
{
private static $loader;

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

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

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

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

$filesToLoad = \Composer\Autoload\ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInite42025df4221b1aa4e90629306b7a463::$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 ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23
class ComposerStaticInite42025df4221b1aa4e90629306b7a463
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2611,9 +2611,9 @@ class ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb30de7a076b8bd05a4938dd520c43a23::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite42025df4221b1aa4e90629306b7a463::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite42025df4221b1aa4e90629306b7a463::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite42025df4221b1aa4e90629306b7a463::$classMap;

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

0 comments on commit f4213d1

Please sign in to comment.