Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizen-ci committed May 17, 2021
1 parent 37219bf commit 25df75b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/ShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

private function reportLoadedRectors(): void
{
$rectors = array_filter($this->rectors, function (RectorInterface $rector) {
$rectors = array_filter($this->rectors, function (RectorInterface $rector): bool {
return ! $rector instanceof PostRectorInterface;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ final class DeprecationWarningCompilerPass implements CompilerPassInterface

public function process(ContainerBuilder $containerBuilder): void
{
$parametersBag = $containerBuilder->getParameterBag();
$parameterBag = $containerBuilder->getParameterBag();

foreach (self::DEPRECATED_PARAMETERS as $parameter => $message) {
if (! $parametersBag->has($parameter)) {
$parameterBagHas = $parameterBag->has($parameter);
if (! $parameterBagHas) {
continue;
}

$setsParameters = $parametersBag->get($parameter);
$setsParameters = $parameterBag->get($parameter);
if ($setsParameters === []) {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/NodeManipulator/ClassMethodAssignManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class ClassMethodAssignManipulator
/**
* @var array<string, string[]>
*/
private $alreadyAddedClassMethodNames = [];
private array $alreadyAddedClassMethodNames = [];

public function __construct(
private BetterNodeFinder $betterNodeFinder,
Expand Down

0 comments on commit 25df75b

Please sign in to comment.