Skip to content

Commit

Permalink
Deprecate TypeUtils::generalizeType()
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 28, 2022
1 parent f6c62a0 commit 2674577
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Type/TypeUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ public static function getAnyArrays(Type $type): array
return self::map(ArrayType::class, $type, true, false);
}

/**
* @deprecated Use PHPStan\Type\Type::generalize() instead.
*/
public static function generalizeType(Type $type, GeneralizePrecision $precision): Type
{
return $type->generalize($precision);
Expand Down

0 comments on commit 2674577

Please sign in to comment.