Skip to content

Commit

Permalink
chore: rector run (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi authored Sep 1, 2024
1 parent 2be64b6 commit c6e5436
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function getQueryBuilder(

foreach ($parameters as $template => $parameter) {
/**
* @psalm-suppress PossiblyInvalidArgument
* @psalm-suppress PossiblyInvalidArgument
*/
$queryBuilder->setParameter(
$template,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private function getQueryBuilder(
}

/**
* @psalm-suppress PossiblyInvalidArgument
* @psalm-suppress PossiblyInvalidArgument
*/
$queryBuilder->setParameter(
$template,
Expand Down
6 changes: 6 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector;
Expand Down Expand Up @@ -95,4 +96,9 @@
ShortenElseIfRector::class => [
__DIR__ . '/packages/rekapager-adapter-common/src/KeysetExpressionCalculator.php',
],

FirstClassCallableRector::class => [
__DIR__ . '/packages/rekapager-doctrine-dbal-adapter/src/QueryBuilderAdapter.php',
__DIR__ . '/packages/rekapager-doctrine-orm-adapter/src/QueryBuilderAdapter.php',
],
]);

0 comments on commit c6e5436

Please sign in to comment.