mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
Updated Rector to commit 362e9b59543957bd64c3ac8b84574116ccc7f47d
362e9b5954
[DeadCode] Skip @return positive-int|0 on RemoveUselessReturnTagRector (#6576)
This commit is contained in:
parent
1c41f0fbf6
commit
6b92e01e7d
@ -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
|
||||||
*/
|
*/
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user