clean up static analysis baseline
This commit is contained in:
parent
978a49091f
commit
28408baa64
@ -384,12 +384,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Utils/FunctionPipeline.php
|
||||
|
||||
-
|
||||
message: '#^PHPDoc tag @param for parameter \$functions with type array\<callable\> is not subtype of native type callable\.$#'
|
||||
identifier: parameter.phpDocType
|
||||
count: 1
|
||||
path: src/Utils/FunctionPipeline.php
|
||||
|
||||
-
|
||||
message: '#^Unsafe usage of new static\(\)\.$#'
|
||||
identifier: new.static
|
||||
@ -474,12 +468,6 @@ parameters:
|
||||
count: 1
|
||||
path: src/Utils/PartiallyAppliedFunction.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#1 \$array \(list\) of array_values is already a list, call has no effect\.$#'
|
||||
identifier: arrayValues.list
|
||||
count: 1
|
||||
path: src/Utils/PartiallyAppliedFunction.php
|
||||
|
||||
-
|
||||
message: '#^Property Kadet\\Functional\\Utils\\PartiallyAppliedFunction\:\:\$arguments has no type specified\.$#'
|
||||
identifier: missingType.property
|
||||
@ -701,9 +689,3 @@ parameters:
|
||||
identifier: missingType.parameter
|
||||
count: 1
|
||||
path: src/functions.php
|
||||
|
||||
-
|
||||
message: '#^Interface Kadet\\Functional\\Predicate referenced with incorrect case\: Kadet\\Functional\\predicate\.$#'
|
||||
identifier: interface.nameCase
|
||||
count: 2
|
||||
path: src/functions.php
|
||||
|
||||
@ -20,7 +20,7 @@ class FunctionPipeline
|
||||
/**
|
||||
* FunctionPipeline constructor.
|
||||
*
|
||||
* @param callable[] $functions
|
||||
* @param callable ...$functions
|
||||
*/
|
||||
public function __construct(callable ...$functions)
|
||||
{
|
||||
|
||||
@ -55,10 +55,7 @@ class PartiallyAppliedFunction implements Decorator, Compilable
|
||||
: $argument;
|
||||
}
|
||||
|
||||
return array_merge(
|
||||
array_values($result),
|
||||
array_values($args)
|
||||
);
|
||||
return array_merge($result, array_values($args));
|
||||
}
|
||||
|
||||
public function getDecorated()
|
||||
|
||||
@ -102,13 +102,13 @@ function unpack($arguments)
|
||||
function all(...$predicates)
|
||||
{
|
||||
$predicates = unpack($predicates);
|
||||
return new AllOfPredicate(...array_map(predicate::class, $predicates));
|
||||
return new AllOfPredicate(...array_map(predicate(...), $predicates));
|
||||
}
|
||||
|
||||
function any(...$predicates)
|
||||
{
|
||||
$predicates = unpack($predicates);
|
||||
return new AnyOfPredicate(...array_map(predicate::class, $predicates));
|
||||
return new AnyOfPredicate(...array_map(predicate(...), $predicates));
|
||||
}
|
||||
|
||||
function symbol($name = null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user