Issues (172)

src/functions/iterable_values.php (2 issues)

Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Improved;
6
7
/**
8
 * Use the values, drop the keys.
9
 *
10
 * @param iterable $iterable
11
 * @return \Generator
12
 */
13 8
function iterable_values(iterable $iterable): \Generator
0 ignored issues
show
Function Improved\iterable_values() has parameter $iterable with no value type specified in iterable type iterable.
Loading history...
Function Improved\iterable_values() return type has no value type specified in iterable type Generator.
Loading history...
14
{
15 7
    foreach ($iterable as $value) {
16 6
        yield $value;
17
    }
18
}
19