mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-05 02:40:50 +00:00
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:
parent
ce9cc3aafc
commit
e10d636f62
|
@ -132,12 +132,17 @@ CODE_SAMPLE
|
|||
return;
|
||||
}
|
||||
$newTypes = [];
|
||||
$hasChanged = \false;
|
||||
foreach ($returnType->getTypes() as $type) {
|
||||
if ($type instanceof VoidType) {
|
||||
$type = new NullType();
|
||||
$hasChanged = \true;
|
||||
}
|
||||
$newTypes[] = $type;
|
||||
}
|
||||
if (!$hasChanged) {
|
||||
return;
|
||||
}
|
||||
$type = $this->typeFactory->createMixedPassedOrUnionTypeAndKeepConstant($newTypes);
|
||||
if (!$type instanceof UnionType) {
|
||||
return;
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '576198cf701684dd85ed42530bcb8c54b6c41a02';
|
||||
public const PACKAGE_VERSION = '61c7e9288885218b76a4a9431bba33a37059dea5';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-23 00:48:13';
|
||||
public const RELEASE_DATE = '2024-03-22 18:07:31';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user