Skip to content

Commit 4628b8b

Browse files
committed
Updated Rector to commit 657ec2e5af81361107cafc9c842b1d9cdf4ed760
rectorphp/rector-src@657ec2e Fix ExplicitMethodCallOverMagicGetSetRector with a protected method (#3732)
1 parent ab1fc21 commit 4628b8b

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

rules/CodeQuality/Rector/PropertyFetch/ExplicitMethodCallOverMagicGetSetRector.php

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ private function refactorPropertyFetch(PropertyFetch $propertyFetch, Scope $scop
139139
continue;
140140
}
141141
$methodReflection = $callerType->getMethod($possibleGetterMethodName, $scope);
142+
if (!$methodReflection->isPublic()) {
143+
continue;
144+
}
142145
$variant = ParametersAcceptorSelector::selectSingle($methodReflection->getVariants());
143146
$returnType = $variant->getReturnType();
144147
if (!$propertyType->isSuperTypeOf($returnType)->yes()) {

src/Application/VersionResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '09b59efbc73c7cd28672d9605b9a17b8f14d2c2a';
22+
public const PACKAGE_VERSION = '657ec2e5af81361107cafc9c842b1d9cdf4ed760';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2023-05-04 18:55:00';
27+
public const RELEASE_DATE = '2023-05-04 19:10:46';
2828
/**
2929
* @var int
3030
*/

vendor/autoload.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

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

25-
return ComposerAutoloaderInit56e66c3bf8363d3941337286edbf9a82::getLoader();
25+
return ComposerAutoloaderInit364511933f4b935fc8c78793d3b6b961::getLoader();

vendor/composer/autoload_real.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit56e66c3bf8363d3941337286edbf9a82
5+
class ComposerAutoloaderInit364511933f4b935fc8c78793d3b6b961
66
{
77
private static $loader;
88

@@ -22,17 +22,17 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInit56e66c3bf8363d3941337286edbf9a82', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInit364511933f4b935fc8c78793d3b6b961', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInit56e66c3bf8363d3941337286edbf9a82', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInit364511933f4b935fc8c78793d3b6b961', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInit56e66c3bf8363d3941337286edbf9a82::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInit364511933f4b935fc8c78793d3b6b961::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);
3434

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInit56e66c3bf8363d3941337286edbf9a82::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInit364511933f4b935fc8c78793d3b6b961::$files;
3636
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
3737
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
3838
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

vendor/composer/autoload_static.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit56e66c3bf8363d3941337286edbf9a82
7+
class ComposerStaticInit364511933f4b935fc8c78793d3b6b961
88
{
99
public static $files = array (
1010
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -3152,9 +3152,9 @@ class ComposerStaticInit56e66c3bf8363d3941337286edbf9a82
31523152
public static function getInitializer(ClassLoader $loader)
31533153
{
31543154
return \Closure::bind(function () use ($loader) {
3155-
$loader->prefixLengthsPsr4 = ComposerStaticInit56e66c3bf8363d3941337286edbf9a82::$prefixLengthsPsr4;
3156-
$loader->prefixDirsPsr4 = ComposerStaticInit56e66c3bf8363d3941337286edbf9a82::$prefixDirsPsr4;
3157-
$loader->classMap = ComposerStaticInit56e66c3bf8363d3941337286edbf9a82::$classMap;
3155+
$loader->prefixLengthsPsr4 = ComposerStaticInit364511933f4b935fc8c78793d3b6b961::$prefixLengthsPsr4;
3156+
$loader->prefixDirsPsr4 = ComposerStaticInit364511933f4b935fc8c78793d3b6b961::$prefixDirsPsr4;
3157+
$loader->classMap = ComposerStaticInit364511933f4b935fc8c78793d3b6b961::$classMap;
31583158

31593159
}, null, ClassLoader::class);
31603160
}

0 commit comments

Comments
 (0)