1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Merge pull request #10829 from vimeo/isTypeContainedByType_flags

This commit is contained in:
Bruce Weirdan 2024-03-20 00:13:38 +01:00 committed by GitHub
commit 4b7957b789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2352,9 +2352,22 @@ final class Codebase
*/ */
public function isTypeContainedByType( public function isTypeContainedByType(
Union $input_type, Union $input_type,
Union $container_type Union $container_type,
bool $ignore_null = false,
bool $ignore_false = false,
bool $allow_interface_equality = false,
bool $allow_float_int_equality = true
): bool { ): bool {
return UnionTypeComparator::isContainedBy($this, $input_type, $container_type); return UnionTypeComparator::isContainedBy(
$this,
$input_type,
$container_type,
$ignore_null,
$ignore_false,
null,
$allow_interface_equality,
$allow_float_int_equality,
);
} }
/** /**