Skip to content

Commit

Permalink
rollback invalid change
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 24, 2022
1 parent bd6803e commit 8c3be7d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/Config/RectorConfig.php
Expand Up @@ -125,7 +125,7 @@ public function ruleWithConfiguration(string $rectorClass, array $configuration)
$services = $this->services();

// decorate with value object inliner so Symfony understands, see https://getrector.org/blog/2020/09/07/how-to-inline-value-object-in-symfony-php-config
array_walk_recursive($configuration, static function (mixed &$value) {
array_walk_recursive($configuration, static function (&$value) {
if (is_object($value)) {
$value = ValueObjectInliner::inline($value);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/Parallel/Application/ParallelFileProcessor.php
Expand Up @@ -197,7 +197,7 @@ function (array $json) use (
$handleErrorCallable,

// 3. callable on exit
function (mixed $exitCode, string $stdErr) use (&$systemErrors, $processIdentifier): void {
function ($exitCode, string $stdErr) use (&$systemErrors, $processIdentifier): void {
$this->processPool->tryQuitProcess($processIdentifier);
if ($exitCode === Command::SUCCESS) {
return;
Expand Down
2 changes: 1 addition & 1 deletion rules/CodingStyle/ClassNameImport/ShortNameResolver.php
Expand Up @@ -171,7 +171,7 @@ private function resolveFromStmtsDocBlocks(array $stmts): array
$phpDocNodeTraverser->traverseWithCallable(
$phpDocInfo->getPhpDocNode(),
'',
static function (mixed $node) use (&$shortNames) {
static function ($node) use (&$shortNames) {
if ($node instanceof PhpDocTagNode) {
$shortName = trim($node->name, '@');
if (StringUtils::isMatch($shortName, self::BIG_LETTER_START_REGEX)) {
Expand Down
Expand Up @@ -30,7 +30,7 @@ public function __construct(

public function normalize(Type $type): ArrayType | UnionType | Type
{
$type = TypeTraverser::map($type, function (Type $type, mixed $callback): Type {
$type = TypeTraverser::map($type, function (Type $type, $callback): Type {
if (! $type instanceof ConstantStringType) {
return $callback($type);
}
Expand Down
Expand Up @@ -39,7 +39,7 @@ private function resolveSkippedRectorClasses(ContainerBuilder $containerBuilder)
{
$skipParameters = (array) $containerBuilder->getParameter(Option::SKIP);

return array_filter($skipParameters, fn (mixed $element): bool => $this->isRectorClass($element));
return array_filter($skipParameters, fn ($element): bool => $this->isRectorClass($element));
}

private function isRectorClass(mixed $element): bool
Expand Down
Expand Up @@ -24,7 +24,7 @@ public function configure(array $configuration): self
$this->ensureClassIsConfigurable($this->id);

// decorate with value object inliner so Symfony understands, see https://getrector.org/blog/2020/09/07/how-to-inline-value-object-in-symfony-php-config
array_walk_recursive($configuration, static function (mixed &$value) {
array_walk_recursive($configuration, static function (&$value) {
if (is_object($value)) {
$value = ValueObjectInliner::inline($value);
}
Expand Down

0 comments on commit 8c3be7d

Please sign in to comment.