Issues (16)

src/Flip.php (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types=1);
9
10
namespace loophp\fpt;
11
12
use Closure;
13
14
/**
15
 * Alternative name: C combinator - except that it is not curried.
16
 *
17
 * phpcs:disable Generic.Files.LineLength.TooLong
18
 *
19
 * @template T
20
 * @template U
21
 * @template V
22
 * @template W
23
 *
24
 * @psalm-immutable
25
 */
26
final class Flip
27
{
28
    /**
29
     * @pure
30
     */
31 2
    public static function of(): Closure
32
    {
33
        return
34
            /**
35
             * @param callable(U, T, ...V): W $callable
36
             *
37
             * @return callable(T, U, ...V): W
38
             */
39 2
            static fn (callable $callable): Closure =>
40
                /**
41
                 * @param T $a
42
                 * @param U $b
43
                 * @param V ...$rest
0 ignored issues
show
The type loophp\fpt\V was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
44
                 *
45
                 * @no-named-arguments
46
                 */
47 2
                static fn ($a, $b, ...$rest): mixed => $callable($b, $a, ...$rest);
48
    }
49
}
50