diff --git a/docs/rector_rules_overview.md b/docs/rector_rules_overview.md index dae75a1c1af..ee69537851a 100644 --- a/docs/rector_rules_overview.md +++ b/docs/rector_rules_overview.md @@ -1,4 +1,4 @@ -# 411 Rules Overview +# 410 Rules Overview
@@ -6,7 +6,7 @@ - [Arguments](#arguments) (5) -- [CodeQuality](#codequality) (73) +- [CodeQuality](#codequality) (72) - [CodingStyle](#codingstyle) (35) @@ -581,27 +581,6 @@ Change multiple null compares to ?? queue
-### DateTimeToDateTimeInterfaceRector - -Changes DateTime type-hint to DateTimeInterface - -- class: [`Rector\CodeQuality\Rector\ClassMethod\DateTimeToDateTimeInterfaceRector`](../rules/CodeQuality/Rector/ClassMethod/DateTimeToDateTimeInterfaceRector.php) - -```diff - class SomeClass { -- public function methodWithDateTime(\DateTime $dateTime) -+ /** -+ * @param \DateTime|\DateTimeImmutable $dateTime -+ */ -+ public function methodWithDateTime(\DateTimeInterface $dateTime) - { - return true; - } - } -``` - -
- ### DoWhileBreakFalseToIfElseRector Replace do (...} while (false); with more readable if/else conditions diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 980dfea0a59..9417dd8dfc2 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -17,12 +17,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '6be87763cbe27e0c20d3923df0efe629e5cae6f8'; + public const PACKAGE_VERSION = 'ed8e26eb3bb471b93c20b3b10c431f13a543cbaa'; /** * @api * @var string */ - public const RELEASE_DATE = '2022-07-01 07:37:29'; + public const RELEASE_DATE = '2022-07-01 09:40:14'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index b7a660b22ed..5d50e2439eb 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d::getLoader(); +return ComposerAutoloaderInit7bbf720ae03560a20dbf34403ab1583e::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 4dfe8759909..fd6db4b44e1 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d +class ComposerAutoloaderInit7bbf720ae03560a20dbf34403ab1583e { private static $loader; @@ -22,19 +22,19 @@ class ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit7bbf720ae03560a20dbf34403ab1583e', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit7bbf720ae03560a20dbf34403ab1583e', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $includeFiles = \Composer\Autoload\ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d::$files; + $includeFiles = \Composer\Autoload\ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e::$files; foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire82f72a9cc0a0e7a903cbec60470ab38d($fileIdentifier, $file); + composerRequire7bbf720ae03560a20dbf34403ab1583e($fileIdentifier, $file); } return $loader; @@ -46,7 +46,7 @@ class ComposerAutoloaderInit82f72a9cc0a0e7a903cbec60470ab38d * @param string $file * @return void */ -function composerRequire82f72a9cc0a0e7a903cbec60470ab38d($fileIdentifier, $file) +function composerRequire7bbf720ae03560a20dbf34403ab1583e($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 9acdc7eca11..1d3d21cbb28 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d +class ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -3413,9 +3413,9 @@ class ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit82f72a9cc0a0e7a903cbec60470ab38d::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit7bbf720ae03560a20dbf34403ab1583e::$classMap; }, null, ClassLoader::class); }