Updated Rector to commit 61c7e9288885218b76a4a9431bba33a37059dea5

61c7e92888 [CodeQuality] No need to re-update doc when already union null doc on ExplicitReturnNullRector (#5757)
This commit is contained in:
Tomas Votruba 2024-03-22 18:09:58 +00:00
parent ce9cc3aafc
commit e10d636f62
2 changed files with 7 additions and 2 deletions

View File

@ -132,12 +132,17 @@ CODE_SAMPLE
return; return;
} }
$newTypes = []; $newTypes = [];
$hasChanged = \false;
foreach ($returnType->getTypes() as $type) { foreach ($returnType->getTypes() as $type) {
if ($type instanceof VoidType) { if ($type instanceof VoidType) {
$type = new NullType(); $type = new NullType();
$hasChanged = \true;
} }
$newTypes[] = $type; $newTypes[] = $type;
} }
if (!$hasChanged) {
return;
}
$type = $this->typeFactory->createMixedPassedOrUnionTypeAndKeepConstant($newTypes); $type = $this->typeFactory->createMixedPassedOrUnionTypeAndKeepConstant($newTypes);
if (!$type instanceof UnionType) { if (!$type instanceof UnionType) {
return; return;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '576198cf701684dd85ed42530bcb8c54b6c41a02'; public const PACKAGE_VERSION = '61c7e9288885218b76a4a9431bba33a37059dea5';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-03-23 00:48:13'; public const RELEASE_DATE = '2024-03-22 18:07:31';
/** /**
* @var int * @var int
*/ */