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:
parent
3559fdd6b3
commit
14f8fb8ecd
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user