Issues (172)

src/functions/iterable_fill.php (2 issues)

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