Skip to content

Commit

Permalink
Updated Rector to commit 0b96adb72c8ddded52c34dc0ea8a6d2bb7327511
Browse files Browse the repository at this point in the history
rectorphp/rector-src@0b96adb AddMethodCallBasedStrictParamTypeRector: Support changing protected methods in final classes (#4611)
  • Loading branch information
TomasVotruba committed Jul 27, 2023
1 parent 07dd656 commit 8424a95
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PhpParser\Node\Stmt\ClassMethod;
use Rector\Core\PhpParser\NodeFinder\LocalMethodCallFinder;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\Reflection\ReflectionResolver;
use Rector\TypeDeclaration\NodeAnalyzer\CallTypesResolver;
use Rector\TypeDeclaration\NodeAnalyzer\ClassMethodParamTypeCompleter;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
Expand Down Expand Up @@ -91,7 +92,8 @@ public function refactor(Node $node) : ?Node
if ($method->params === []) {
continue;
}
if (!$method->isPrivate()) {
$isPrivate = $node->isFinal() && $node->extends === null && $node->implements === [] && $method->isProtected() || $method->isFinal() && $node->extends === null && $node->implements === [] || $method->isPrivate();
if (!$isPrivate) {
continue;
}
$methodCalls = $this->localMethodCallFinder->match($node, $method);
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 = '3a95b1436575815cfc442baf137a2a6a24100cdd';
public const PACKAGE_VERSION = '0b96adb72c8ddded52c34dc0ea8a6d2bb7327511';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-27 11:10:47';
public const RELEASE_DATE = '2023-07-27 14:50:35';
/**
* @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 ComposerAutoloaderInitff7d92f95514b3cf37b6783b33384602::getLoader();
return ComposerAutoloaderInit3ae8f2b93156f6ccfd06304dbf6cb2de::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 ComposerAutoloaderInitff7d92f95514b3cf37b6783b33384602
class ComposerAutoloaderInit3ae8f2b93156f6ccfd06304dbf6cb2de
{
private static $loader;

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

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

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

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

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

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

0 comments on commit 8424a95

Please sign in to comment.