Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped deprecated TypeAnalyzer methods #7277

Merged
merged 1 commit into from Jan 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
55 changes: 0 additions & 55 deletions src/Psalm/Internal/Analyzer/TypeAnalyzer.php
Expand Up @@ -2,12 +2,7 @@

namespace Psalm\Internal\Analyzer;

use Psalm\Codebase;
use Psalm\Internal\Type\Comparator\AtomicTypeComparator;
use Psalm\Internal\Type\Comparator\TypeComparisonResult;
use Psalm\Internal\Type\Comparator\UnionTypeComparator;
use Psalm\Type;
use Psalm\Type\Atomic;
use Psalm\Type\Union;

use function array_keys;
Expand All @@ -19,56 +14,6 @@
*/
class TypeAnalyzer
{
/**
* Does the input param type match the given param type
*
* @deprecated in favour of UnionTypeComparator, going to be removed in Psalm 5
* @psalm-suppress PossiblyUnusedMethod
*/
public static function isContainedBy(
Codebase $codebase,
Union $input_type,
Union $container_type,
bool $ignore_null = false,
bool $ignore_false = false,
?TypeComparisonResult $union_comparison_result = null,
bool $allow_interface_equality = false
): bool {
return UnionTypeComparator::isContainedBy(
$codebase,
$input_type,
$container_type,
$ignore_null,
$ignore_false,
$union_comparison_result,
$allow_interface_equality
);
}

/**
* Does the input param atomic type match the given param atomic type
*
* @deprecated in favour of AtomicTypeComparator, going to be removed in Psalm 5
* @psalm-suppress PossiblyUnusedMethod
*/
public static function isAtomicContainedBy(
Codebase $codebase,
Atomic $input_type_part,
Atomic $container_type_part,
bool $allow_interface_equality = false,
bool $allow_float_int_equality = true,
?TypeComparisonResult $atomic_comparison_result = null
): bool {
return AtomicTypeComparator::isContainedBy(
$codebase,
$input_type_part,
$container_type_part,
$allow_interface_equality,
$allow_float_int_equality,
$atomic_comparison_result
);
}

/**
* Takes two arrays of types and merges them
*
Expand Down