aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-12-07 15:36:38 +0100
committerGitHub <noreply@github.com>2023-12-07 15:36:38 +0100
commit5a2f35d47323eff81b43ad433cfdb2e7cc0a32c2 (patch)
tree6e9e78e646ca081b713baf2d87a2b6aa72d2afbb
parente3f23f2b73463db801b7a83dea3bff0b11de676e (diff)
parent9b944650bd4c7d3425abc2529969050d2ccf1188 (diff)
downloaddokuwiki-5a2f35d47323eff81b43ad433cfdb2e7cc0a32c2.tar.gz
dokuwiki-5a2f35d47323eff81b43ad433cfdb2e7cc0a32c2.zip
Merge pull request #4123 from annda/rector-0.18.12
Upgrade rector to 0.18.12
-rw-r--r--_test/composer.json2
-rw-r--r--_test/composer.lock14
-rw-r--r--_test/rector.php4
3 files changed, 8 insertions, 12 deletions
diff --git a/_test/composer.json b/_test/composer.json
index 896f8ef1e..cddf2b765 100644
--- a/_test/composer.json
+++ b/_test/composer.json
@@ -10,7 +10,7 @@
},
"prefer-stable": true,
"require-dev": {
- "rector/rector": "^0.18.3",
+ "rector/rector": "^0.18.12",
"squizlabs/php_codesniffer": "^3.7",
"phpunit/phpunit": "^8.5"
},
diff --git a/_test/composer.lock b/_test/composer.lock
index 5b34e1a7c..d8cf2e2c6 100644
--- a/_test/composer.lock
+++ b/_test/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "5b9c0aa944039e87220b6ec1e4e3f10a",
+ "content-hash": "76bfa04eee307c81e4853091e3406874",
"packages": [
{
"name": "scotteh/php-dom-wrapper",
@@ -916,16 +916,16 @@
},
{
"name": "rector/rector",
- "version": "0.18.7",
+ "version": "0.18.12",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
- "reference": "caba0e294a1228f64f8a9cfd0d715cc8af47c4da"
+ "reference": "ed8d5352a3faa69e4a5e315896abffd4bc29c828"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/rectorphp/rector/zipball/caba0e294a1228f64f8a9cfd0d715cc8af47c4da",
- "reference": "caba0e294a1228f64f8a9cfd0d715cc8af47c4da",
+ "url": "https://api.github.com/repos/rectorphp/rector/zipball/ed8d5352a3faa69e4a5e315896abffd4bc29c828",
+ "reference": "ed8d5352a3faa69e4a5e315896abffd4bc29c828",
"shasum": ""
},
"require": {
@@ -960,7 +960,7 @@
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
- "source": "https://github.com/rectorphp/rector/tree/0.18.7"
+ "source": "https://github.com/rectorphp/rector/tree/0.18.12"
},
"funding": [
{
@@ -968,7 +968,7 @@
"type": "github"
}
],
- "time": "2023-11-13T10:11:05+00:00"
+ "time": "2023-12-04T08:47:30+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
diff --git a/_test/rector.php b/_test/rector.php
index ecd3c6d7c..1d24fab90 100644
--- a/_test/rector.php
+++ b/_test/rector.php
@@ -15,7 +15,6 @@ use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector;
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
-use Rector\CodingStyle\Rector\Class_\AddArrayDefaultToArrayPropertyRector;
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
@@ -30,7 +29,6 @@ use Rector\DeadCode\Rector\If_\RemoveUnusedNonEmptyArrayBeforeForeachRector;
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
use Rector\DeadCode\Rector\Stmt\RemoveUnreachableStatementRector;
-use Rector\Php71\Rector\FuncCall\CountOnNullRector;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
use Rector\Php80\Rector\Identical\StrEndsWithRector;
use Rector\Php80\Rector\Identical\StrStartsWithRector;
@@ -117,12 +115,10 @@ return static function (RectorConfig $rectorConfig): void {
PostIncDecToPreIncDecRector::class,
RemoveUselessParamTagRector::class,
DisallowedEmptyRuleFixerRector::class,
- CountOnNullRector::class, // adds unwanted is_countable checks?
RemoveParentCallWithoutParentRector::class,
WrapEncapsedVariableInCurlyBracesRector::class,
SimplifyIfReturnBoolRector::class,
StrictArraySearchRector::class, // we cannot assume strict search is always wanted
- AddArrayDefaultToArrayPropertyRector::class, // may break code differentiating between null and empty array
RemoveUselessVarTagRector::class,
TypedPropertyFromAssignsRector::class, // maybe?
JoinStringConcatRector::class, // this does not count variables, so it creates overlong lines