mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Fixes
This commit is contained in:
parent
9e535682c4
commit
fa908e4ee1
@ -1565,7 +1565,7 @@ final class Codebase
|
||||
string $gap,
|
||||
bool $snippets_supported = false,
|
||||
array $allow_visibilities = null,
|
||||
array $ignore_fq_class_names = []
|
||||
array $ignore_fq_class_names = [],
|
||||
): array {
|
||||
if ($allow_visibilities === null) {
|
||||
$allow_visibilities = [
|
||||
|
@ -852,9 +852,6 @@ final class ArgumentAnalyzer
|
||||
if ($candidate_callable && $candidate_callable !== $atomic_type) {
|
||||
// if we had an array callable, mark it as used now, since it's not possible later
|
||||
$potential_method_id = null;
|
||||
if ($atomic_type instanceof TList) {
|
||||
$atomic_type = $atomic_type->getKeyedArray();
|
||||
}
|
||||
|
||||
if ($atomic_type instanceof TKeyedArray) {
|
||||
$potential_method_id = CallableTypeComparator::getCallableMethodIdFromTKeyedArray(
|
||||
|
@ -1036,9 +1036,9 @@ final class ArgumentsAnalyzer
|
||||
$function_params,
|
||||
static function (
|
||||
?FunctionLikeParameter $function_param,
|
||||
FunctionLikeParameter $param
|
||||
FunctionLikeParameter $param,
|
||||
) use (
|
||||
$arg
|
||||
$arg,
|
||||
) {
|
||||
if ($param->name === $arg->name->name) {
|
||||
return $param;
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Psalm\Internal\Provider\ParamsProvider;
|
||||
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Psalm\Internal\Provider\ParamsProvider;
|
||||
|
||||
use PhpParser\Node\Expr\ConstFetch;
|
||||
|
@ -428,7 +428,7 @@ final class SimpleNegatedAssertionReconciler extends Reconciler
|
||||
private static function reconcileCallable(
|
||||
Union $existing_var_type,
|
||||
Codebase $codebase,
|
||||
TCallable $assertion_type
|
||||
TCallable $assertion_type,
|
||||
): Union {
|
||||
$existing_var_type = $existing_var_type->getBuilder();
|
||||
foreach ($existing_var_type->getAtomicTypes() as $atomic_key => $type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user