Skip to content

Commit ebf5827

Browse files
authored
Merge pull request #83 from codeigniter4/dependabot/composer/rector/rector-0.17.1
chore(deps-dev): update rector/rector requirement from 0.16.0 to 0.17.1
2 parents 05923f9 + 1727894 commit ebf5827

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"require-dev": {
2323
"codeigniter4/devkit": "^1.0",
2424
"codeigniter4/framework": "^4.2.3",
25-
"rector/rector": "0.16.0"
25+
"rector/rector": "0.17.1"
2626
},
2727
"minimum-stability": "dev",
2828
"prefer-stable": true,

rector.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
44
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
55
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
6-
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
76
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
8-
use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector;
97
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
108
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
119
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
@@ -21,7 +19,6 @@
2119
use Rector\Config\RectorConfig;
2220
use Rector\Core\ValueObject\PhpVersion;
2321
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
24-
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
2522
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
2623
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
2724
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
@@ -31,7 +28,6 @@
3128
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3229
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
3330
use Rector\PHPUnit\Set\PHPUnitSetList;
34-
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3531
use Rector\Set\ValueObject\LevelSetList;
3632
use Rector\Set\ValueObject\SetList;
3733

@@ -74,17 +70,6 @@
7470
// Note: requires php 8
7571
RemoveUnusedPromotedPropertyRector::class,
7672

77-
// Ignore tests that might make calls without a result
78-
RemoveEmptyMethodCallRector::class => [
79-
__DIR__ . '/tests',
80-
],
81-
82-
// Ignore files that should not be namespaced
83-
NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [
84-
__DIR__ . '/src/Helpers',
85-
__DIR__ . '/tests/_support',
86-
],
87-
8873
// May load view files directly when detecting classes
8974
StringClassNameToClassConstantRector::class,
9075

@@ -94,7 +79,6 @@
9479
$rectorConfig->rule(SimplifyUselessVariableRector::class);
9580
$rectorConfig->rule(RemoveAlwaysElseRector::class);
9681
$rectorConfig->rule(CountArrayToEmptyArrayComparisonRector::class);
97-
$rectorConfig->rule(ForToForeachRector::class);
9882
$rectorConfig->rule(ChangeNestedForeachIfsToEarlyContinueRector::class);
9983
$rectorConfig->rule(ChangeIfElseValueAssignToEarlyReturnRector::class);
10084
$rectorConfig->rule(SimplifyStrposLowerRector::class);
@@ -107,12 +91,10 @@
10791
$rectorConfig->rule(UnusedForeachValueToArrayKeysRector::class);
10892
$rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class);
10993
$rectorConfig->rule(UnnecessaryTernaryExpressionRector::class);
110-
$rectorConfig->rule(AddPregQuoteDelimiterRector::class);
11194
$rectorConfig->rule(SimplifyRegexPatternRector::class);
11295
$rectorConfig->rule(FuncGetArgsToVariadicParamRector::class);
11396
$rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class);
11497
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);
115-
$rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
11698
$rectorConfig
11799
->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
118100
// Set to false if you use in libraries, or it does create breaking changes.

src/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function set(string $class, string $property, $value = null, ?string $con
9393
'context' => $context,
9494
'updated_at' => $time,
9595
]);
96-
// ...otherwise insert it
96+
// ...otherwise insert it
9797
} else {
9898
$result = $this->builder
9999
->insert([

0 commit comments

Comments
 (0)