Updated Rector to commit 3699f54c7ea5bc472818a9ce6d17ae95f5f0d59c

3699f54c7e Clean up CompleteMissingIfElseBracketRector (#5130)
This commit is contained in:
Tomas Votruba 2023-10-06 08:22:29 +00:00
parent 4c41a02036
commit f2b9e5da57
2 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\CodeQuality\Rector\If_;
use PhpParser\Node;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Else_;
use PhpParser\Node\Stmt\ElseIf_;
use PhpParser\Node\Stmt\If_;
@ -94,8 +95,7 @@ CODE_SAMPLE
}
}
$startStmt = \current($if->stmts);
$lastStmt = \end($if->stmts);
return $startStmt === \false || $lastStmt === \false;
return !$startStmt instanceof Stmt;
}
/**
* @param \PhpParser\Node\Stmt\If_|\PhpParser\Node\Stmt\ElseIf_|\PhpParser\Node\Stmt\Else_ $if

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '0c9fac55d8e426402d3f306aa2979c23653a7a8a';
public const PACKAGE_VERSION = '3699f54c7ea5bc472818a9ce6d17ae95f5f0d59c';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-06 15:10:00';
public const RELEASE_DATE = '2023-10-06 15:18:47';
/**
* @var int
*/