1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix two redundant asserts

This commit is contained in:
Matthew Brown 2020-02-09 11:45:43 -05:00
parent 3559fdd6b3
commit 14f8fb8ecd
2 changed files with 0 additions and 4 deletions

View File

@ -194,8 +194,6 @@ class ArrayFilterReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturn
if (isset($assertions['$' . $first_param->var->name])) {
$changed_var_ids = [];
assert($statements_source instanceof \Psalm\Internal\Analyzer\StatementsAnalyzer);
$assertions = ['$inner_type' => $assertions['$' . $first_param->var->name]];
$reconciled_types = Reconciler::reconcileKeyedTypes(

View File

@ -50,8 +50,6 @@ class IteratorToArrayReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionRe
new Type\Atomic\TIterable([Type::getMixed(), Type::getMixed()])
)
) {
assert($statements_source instanceof \Psalm\Internal\Analyzer\StatementsAnalyzer);
$has_valid_iterator = true;
ForeachAnalyzer::handleIterable(
$statements_source,