Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into simplify-install…
Browse files Browse the repository at this point in the history
…-instructions
  • Loading branch information
fredden committed Sep 10, 2024
2 parents e43bd79 + e0f31fa commit 556edd4
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Magento2/Rector/Src/AddArrayAccessInterfaceReturnTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down
2 changes: 1 addition & 1 deletion Magento2/Rector/Src/ReplaceMbStrposNullLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr\FuncCall;
use PhpParser\Node\Scalar\LNumber;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down
2 changes: 1 addition & 1 deletion Magento2/Rector/Src/ReplaceNewDateTimeNull.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr\New_;
use PhpParser\Node\Scalar\String_;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down
2 changes: 1 addition & 1 deletion Magento2/Rector/Src/ReplacePregSplitNullLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\FuncCall;
use Rector\Core\Rector\AbstractRector;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"AFL-3.0"
],
"type": "phpcodesniffer-standard",
"version": "33",
"version": "34",
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2 || ^1.0",
"webonyx/graphql-php": "^15.0",
"ext-simplexml": "*",
"ext-dom": "*",
"squizlabs/php_codesniffer": "^3.6.1",
"rector/rector": "^0.17.12",
"rector/rector": "^1.2.4",
"phpcsstandards/phpcsutils": "^1.0.5",
"magento/php-compatibility-fork": "^0.1"
},
Expand Down
33 changes: 16 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 9 additions & 12 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Magento2\Rector\Src\ReplaceMbStrposNullLimit;
use Magento2\Rector\Src\ReplaceNewDateTimeNull;
use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\ValueObject\PhpVersion;
use Rector\Php80\Rector\Class_\StringableForToStringRector;
use Rector\Php80\Rector\ClassMethod\FinalPrivateToPrivateVisibilityRector;
use Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector;
Expand All @@ -17,16 +17,13 @@
$rectorConfig->phpVersion(PhpVersion::PHP_80);
$rectorConfig->phpVersion(PhpVersion::PHP_81);

// get services (needed for register a single rule)
$services = $rectorConfig->services();

// register a single rule
$services->set(FinalPrivateToPrivateVisibilityRector::class);
$services->set(OptionalParametersAfterRequiredRector::class);
$services->set(SetStateToStaticRector::class);
$services->set(StringableForToStringRector::class);
$services->set(Php81ResourceReturnToObjectRector::class);
$services->set(ReplacePregSplitNullLimit::class);
$services->set(ReplaceMbStrposNullLimit::class);
$services->set(ReplaceNewDateTimeNull::class);
$rectorConfig->singleton(FinalPrivateToPrivateVisibilityRector::class);
$rectorConfig->singleton(OptionalParametersAfterRequiredRector::class);
$rectorConfig->singleton(SetStateToStaticRector::class);
$rectorConfig->singleton(StringableForToStringRector::class);
$rectorConfig->singleton(Php81ResourceReturnToObjectRector::class);
$rectorConfig->singleton(ReplacePregSplitNullLimit::class);
$rectorConfig->singleton(ReplaceMbStrposNullLimit::class);
$rectorConfig->singleton(ReplaceNewDateTimeNull::class);
};

0 comments on commit 556edd4

Please sign in to comment.