mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2
41729c25cb
[DeadCode] Skip @return never with void on RemoveUselessReturnTagRector (#5320)
This commit is contained in:
parent
d9834a6d69
commit
ee373e619a
|
@ -66,7 +66,7 @@ final class DeadReturnTagValueNodeAnalyzer
|
|||
}
|
||||
// in case of void, there is no added value in @return tag
|
||||
if ($returnType instanceof Identifier && $returnType->toString() === 'void') {
|
||||
return \true;
|
||||
return !$returnTagValueNode->type instanceof IdentifierTypeNode || (string) $returnTagValueNode->type !== 'never';
|
||||
}
|
||||
if (!$this->typeComparator->arePhpParserAndPhpStanPhpDocTypesEqual($returnType, $returnTagValueNode->type, $classMethod)) {
|
||||
return $returnTagValueNode->type instanceof IdentifierTypeNode && (string) $returnTagValueNode->type === 'void';
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '8e6d46a58fff8e6bd5276b9ae473bfb91460b487';
|
||||
public const PACKAGE_VERSION = '41729c25cb33ec5219433d5e101d6d54ed4045a2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-12-03 20:10:35';
|
||||
public const RELEASE_DATE = '2023-12-04 08:54:10';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue