Skip to content

Commit

Permalink
Updated Rector to commit c12703def127562155efcee2c348ca3a4d08c170
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c12703d Simplify TypedPropertyFromStrictConstructorRector (#4587)
  • Loading branch information
TomasVotruba committed Jul 23, 2023
1 parent ba5cf50 commit f8344bb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,15 @@ public function getNodeTypes() : array
public function refactor(Node $node) : ?Node
{
$constructClassMethod = $node->getMethod(MethodName::CONSTRUCT);
if (!$constructClassMethod instanceof ClassMethod) {
if (!$constructClassMethod instanceof ClassMethod || $node->getProperties() === []) {
return null;
}
$classReflection = $this->reflectionResolver->resolveClassReflection($node);
if (!$classReflection instanceof ClassReflection) {
return null;
}
$hasChanged = \false;
$classReflection = null;
foreach ($node->getProperties() as $property) {
if (!$classReflection instanceof ClassReflection) {
$classReflection = $this->reflectionResolver->resolveClassReflection($node);
}
if (!$classReflection instanceof ClassReflection) {
return null;
}
if (!$this->propertyTypeOverrideGuard->isLegal($property, $classReflection)) {
continue;
}
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 = '1cae44fcd3cac21d4d8064235d6feebe860be7cd';
public const PACKAGE_VERSION = 'c12703def127562155efcee2c348ca3a4d08c170';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-23 09:41:56';
public const RELEASE_DATE = '2023-07-23 18:19:26';
/**
* @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 ComposerAutoloaderInit8bcb4e3aaf8b3b1ea53660907b51939f::getLoader();
return ComposerAutoloaderInitc57a4a84ff14fb5da81d649a75cccd6c::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 ComposerAutoloaderInit8bcb4e3aaf8b3b1ea53660907b51939f
class ComposerAutoloaderInitc57a4a84ff14fb5da81d649a75cccd6c
{
private static $loader;

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

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

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

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

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

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

0 comments on commit f8344bb

Please sign in to comment.