Skip to content

Commit

Permalink
Updated Rector to commit 69a3e31e443dc9610e675ee2ac380cd8f6581a4c
Browse files Browse the repository at this point in the history
rectorphp/rector-src@69a3e31  [CodeQuality] Skip Generator on SimplifyForeachToCoalescingRector  (#6221)
  • Loading branch information
TomasVotruba committed Aug 6, 2024
1 parent f253bfe commit c050377
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private function matchForeachReturnOrAssign(Foreach_ $foreach)
if ($if->else instanceof Else_ || $if->elseifs !== []) {
return null;
}
$foreachExprType = $this->nodeTypeResolver->getNativeType($foreach->expr);
if (!$foreachExprType->isArray()->yes()) {
return null;
}
$innerStmt = $if->stmts[0];
if ($innerStmt instanceof Return_) {
return $innerStmt;
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 = '6a4d7178cc23656fabc4ea31a8d1673cdfde6e37';
public const PACKAGE_VERSION = '69a3e31e443dc9610e675ee2ac380cd8f6581a4c';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-08-06 20:26:09';
public const RELEASE_DATE = '2024-08-06 20:52:34';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Restore the backup and ensure the excluded files are properly marked as loaded
$GLOBALS['__composer_autoload_files'] = \array_merge(
$existingComposerAutoloadFiles,
\array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true)
\array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true)
);

return $loader;
Expand Down

0 comments on commit c050377

Please sign in to comment.