mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
parent
0f94bebe4c
commit
736ccd84cd
@ -1962,6 +1962,7 @@ class TypeAnalyzer
|
||||
$all_types_contain = false;
|
||||
}
|
||||
} elseif (!$input_type_part instanceof TIterable
|
||||
&& !$container_type_part instanceof TIterable
|
||||
&& !$container_param->hasTemplate()
|
||||
&& !$input_param->hasTemplate()
|
||||
) {
|
||||
|
@ -2411,6 +2411,15 @@ class ClassTemplateExtendsTest extends TestCase
|
||||
$anInt = $maybe->extract();
|
||||
}'
|
||||
],
|
||||
'extendIterable' => [
|
||||
'<?php
|
||||
class MyTestCase {
|
||||
/** @return iterable<int,array<int,int>> */
|
||||
public function provide() {
|
||||
yield [1];
|
||||
}
|
||||
}'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user