Skip to content

Commit

Permalink
Updated Rector to commit a43f37190db97fb8807cb08f4e7171a338625387
Browse files Browse the repository at this point in the history
rectorphp/rector-src@a43f371 [CodeQuality] Handle Switch maybe return on ExplicitReturnNullRector (#5801)
  • Loading branch information
TomasVotruba committed Apr 3, 2024
1 parent d36c8ad commit f81fa92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/TypeDeclaration/TypeInferer/SilentVoidResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function isSwitchWithAlwaysReturnOrExit(Switch_ $switch) : bool
$hasDefault = \false;
foreach ($switch->cases as $case) {
if (!$case->cond instanceof Expr) {
$hasDefault = \true;
$hasDefault = $case->stmts !== [];
break;
}
}
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 = '0348124a5535b99712da4debc136d2e73647b97a';
public const PACKAGE_VERSION = 'a43f37190db97fb8807cb08f4e7171a338625387';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-04-03 21:15:24';
public const RELEASE_DATE = '2024-04-03 22:08:14';
/**
* @var int
*/
Expand Down

0 comments on commit f81fa92

Please sign in to comment.