Skip to content

Commit

Permalink
Updated Rector to commit f76d034bf8eb60e7a7a2d73b2239aebf81b1ac51
Browse files Browse the repository at this point in the history
rectorphp/rector-src@f76d034 [DX] Remove NullifyUnionNullableRector, let cs tools handle it (#4660)
  • Loading branch information
TomasVotruba committed Aug 5, 2023
1 parent 2e58adb commit aef03f3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 147 deletions.
21 changes: 2 additions & 19 deletions docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 364 Rules Overview
# 363 Rules Overview

<br>

Expand All @@ -8,7 +8,7 @@

- [CodeQuality](#codequality) (71)

- [CodingStyle](#codingstyle) (31)
- [CodingStyle](#codingstyle) (30)

- [DeadCode](#deadcode) (42)

Expand Down Expand Up @@ -2003,23 +2003,6 @@ Changes negate of empty comparison of nullable value to explicit === or !== comp

<br>

### NullifyUnionNullableRector

Changes already typed Type|null to ?Type

- class: [`Rector\CodingStyle\Rector\Property\NullifyUnionNullableRector`](../rules/CodingStyle/Rector/Property/NullifyUnionNullableRector.php)

```diff
final class SomeClass
{

- private null|stdClass $property;
+ private ?stdClass $property;
}
```

<br>

### PostIncDecToPreIncDecRector

Use ++$value or --$value instead of `$value++` or `$value--`
Expand Down
114 changes: 0 additions & 114 deletions rules/CodingStyle/Rector/Property/NullifyUnionNullableRector.php

This file was deleted.

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 = '8c04f656b32d8d95a5139e59cbfbc508647dd3b1';
public const PACKAGE_VERSION = 'f76d034bf8eb60e7a7a2d73b2239aebf81b1ac51';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-05 23:26:30';
public const RELEASE_DATE = '2023-08-05 18:53:37';
/**
* @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 ComposerAutoloaderInit66f85fd3fcfdd09fa2c22cad4a577f36::getLoader();
return ComposerAutoloaderInita2c899aec318d516f15998c8405c3588::getLoader();
1 change: 0 additions & 1 deletion vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,6 @@
'Rector\\CodingStyle\\Rector\\If_\\NullableCompareToNullRector' => $baseDir . '/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php',
'Rector\\CodingStyle\\Rector\\Plus\\UseIncrementAssignRector' => $baseDir . '/rules/CodingStyle/Rector/Plus/UseIncrementAssignRector.php',
'Rector\\CodingStyle\\Rector\\PostInc\\PostIncDecToPreIncDecRector' => $baseDir . '/rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php',
'Rector\\CodingStyle\\Rector\\Property\\NullifyUnionNullableRector' => $baseDir . '/rules/CodingStyle/Rector/Property/NullifyUnionNullableRector.php',
'Rector\\CodingStyle\\Rector\\Property\\SplitGroupedPropertiesRector' => $baseDir . '/rules/CodingStyle/Rector/Property/SplitGroupedPropertiesRector.php',
'Rector\\CodingStyle\\Rector\\Stmt\\NewlineAfterStatementRector' => $baseDir . '/rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php',
'Rector\\CodingStyle\\Rector\\String_\\SymplifyQuoteEscapeRector' => $baseDir . '/rules/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector.php',
Expand Down
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 ComposerAutoloaderInit66f85fd3fcfdd09fa2c22cad4a577f36
class ComposerAutoloaderInita2c899aec318d516f15998c8405c3588
{
private static $loader;

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

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

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

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

$filesToLoad = \Composer\Autoload\ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInita2c899aec318d516f15998c8405c3588::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
9 changes: 4 additions & 5 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 ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36
class ComposerStaticInita2c899aec318d516f15998c8405c3588
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -1731,7 +1731,6 @@ class ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36
'Rector\\CodingStyle\\Rector\\If_\\NullableCompareToNullRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php',
'Rector\\CodingStyle\\Rector\\Plus\\UseIncrementAssignRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/Plus/UseIncrementAssignRector.php',
'Rector\\CodingStyle\\Rector\\PostInc\\PostIncDecToPreIncDecRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/PostInc/PostIncDecToPreIncDecRector.php',
'Rector\\CodingStyle\\Rector\\Property\\NullifyUnionNullableRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/Property/NullifyUnionNullableRector.php',
'Rector\\CodingStyle\\Rector\\Property\\SplitGroupedPropertiesRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/Property/SplitGroupedPropertiesRector.php',
'Rector\\CodingStyle\\Rector\\Stmt\\NewlineAfterStatementRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php',
'Rector\\CodingStyle\\Rector\\String_\\SymplifyQuoteEscapeRector' => __DIR__ . '/../..' . '/rules/CodingStyle/Rector/String_/SymplifyQuoteEscapeRector.php',
Expand Down Expand Up @@ -3016,9 +3015,9 @@ class ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit66f85fd3fcfdd09fa2c22cad4a577f36::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInita2c899aec318d516f15998c8405c3588::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita2c899aec318d516f15998c8405c3588::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInita2c899aec318d516f15998c8405c3588::$classMap;

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

0 comments on commit aef03f3

Please sign in to comment.