8000 [pull] main from rectorphp:main by pull[bot] · Pull Request #925 · nagyist/rector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] main from rectorphp:main #925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
use PhpParser\Node\ArrayItem;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Array_;
use PhpParser\Node\Expr\CallLike;
use PhpParser\Node\Expr\PreDec;
use PhpParser\Node\Expr\PreInc;
use PhpParser\Node\Expr\PropertyFetch;
use Rector\PhpParser\Printer\BetterStandardPrinter;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
Expand Down Expand Up @@ -81,6 +83,12 @@ private function resolveDuplicateKeysArrayItems(Array_ $array) : array
if (!$arrayItem->key instanceof Expr) {
continue;
}
if ($arrayItem->key instanceof CallLike) {
continue;
}
if ($arrayItem->key instanceof PropertyFetch) {
continue;
}
$keyValue = $this->betterStandardPrinter->print($arrayItem->key);
$arrayItemsByKeys[$keyValue][] = $arrayItem;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0f1c306aaf7d0d4c9e9bd6856abf1d746eb31785';
public const PACKAGE_VERSION = 'c75ecb5b1d6bb7d2c7b4bdbab2e8630e194830a0';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-06-18 16:42:43';
public const RELEASE_DATE = '2025-06-18 23:17:21';
/**
* @var int
*/
Expand Down
0