Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2

41729c25cb [DeadCode] Skip @return never with void on  RemoveUselessReturnTagRector (#5320)
This commit is contained in:
Tomas Votruba 2023-12-04 01:56:17 +00:00
parent d9834a6d69
commit ee373e619a
2 changed files with 3 additions and 3 deletions

View File

@ -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';

View File

@ -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
*/