From 9e5b8e1deaebe50f835ac7ef1d43fc2dd5e7df28 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Fri, 19 Jul 2024 00:41:18 +0700 Subject: [PATCH] MixedTypeRector --- rector.php | 2 ++ src/ObjectCache/ObjectCache.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rector.php b/rector.php index 814daee2..bbc974ce 100644 --- a/rector.php +++ b/rector.php @@ -13,6 +13,7 @@ use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector; use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector; use Rector\Php80\Rector\FuncCall\ClassOnObjectRector; +use Rector\Php80\Rector\FunctionLike\MixedTypeRector; use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector; use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector; @@ -36,6 +37,7 @@ // uncomment to reach your current PHP version // ->withPhpSets(php82: true) ->withRules([ + MixedTypeRector::class, ReadOnlyPropertyRector::class, RemoveUnusedVariableInCatchRector::class, ClassOnObjectRector::class, diff --git a/src/ObjectCache/ObjectCache.php b/src/ObjectCache/ObjectCache.php index afdef833..b9e5e7cb 100644 --- a/src/ObjectCache/ObjectCache.php +++ b/src/ObjectCache/ObjectCache.php @@ -52,7 +52,6 @@ private function isBlacklisted(mixed $source): bool * cache will yield an exception. If the target is finally cached, it is * no longer in precached status. * - * @param mixed $source * @param Type $targetType * @return void */