Updated Rector to commit 362e9b59543957bd64c3ac8b84574116ccc7f47d

362e9b5954 [DeadCode] Skip @return positive-int|0 on RemoveUselessReturnTagRector (#6576)
This commit is contained in:
Tomas Votruba 2024-12-12 22:57:55 +00:00
parent 1c41f0fbf6
commit 6b92e01e7d
2 changed files with 3 additions and 13 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '96110a93c903f8e958954b537188914694754dfb'; public const PACKAGE_VERSION = '362e9b59543957bd64c3ac8b84574116ccc7f47d';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-12-13 05:07:16'; public const RELEASE_DATE = '2024-12-13 05:55:32';
/** /**
* @var int * @var int
*/ */

View File

@ -142,17 +142,7 @@ final class TypeFactory
if (\count($types) === 1) { if (\count($types) === 1) {
return $types[0]; return $types[0];
} }
$unionType = new UnionType($types); return new UnionType($types);
if ($unionType->isFloat()->yes()) {
return new IntegerType();
}
if ($unionType->isString()->yes()) {
return new StringType();
}
if ($unionType->isInteger()->yes()) {
return new IntegerType();
}
return $unionType;
} }
private function removeValueFromConstantType(Type $type) : Type private function removeValueFromConstantType(Type $type) : Type
{ {