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