Skip to content

Commit

Permalink
Updated Rector to commit 9cf87f6ac68f0386a27e2892d832ee113ffcc642
Browse files Browse the repository at this point in the history
rectorphp/rector-src@9cf87f6 Skip nullable DateTimeInterface in RenamePropertyToMatchTypeRector (#3420)
  • Loading branch information
TomasVotruba committed Feb 27, 2023
1 parent f44d4bb commit d72ba9e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ public function resolve(Param $param) : ?string
return null;
}
$staticType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type);
// include nullable too
// skip date time + date time interface, as should be kept
if ($staticType instanceof ObjectType && $staticType->isInstanceOf('DateTimeInterface')->yes()) {
if ($staticType->isSuperTypeOf(new ObjectType('DateTimeInterface'))->yes()) {
return null;
}
$expectedName = $this->propertyNaming->getExpectedNameFromType($staticType);
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 = 'b7b3a1dc2ea5c141aa1c48e626af10a31f832b77';
public const PACKAGE_VERSION = '9cf87f6ac68f0386a27e2892d832ee113ffcc642';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-02-26 19:39:41';
public const RELEASE_DATE = '2023-02-27 00:04:07';
/**
* @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 ComposerAutoloaderInitd658c3a965d615efa3975118556723c5::getLoader();
return ComposerAutoloaderInit2c3dae2e56f4c6f7d9c1ac9aa83f06ff::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 ComposerAutoloaderInitd658c3a965d615efa3975118556723c5
class ComposerAutoloaderInit2c3dae2e56f4c6f7d9c1ac9aa83f06ff
{
private static $loader;

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

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

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

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

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

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

0 comments on commit d72ba9e

Please sign in to comment.