1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Daniil Gentili 2023-11-27 11:55:38 +01:00
parent 9e535682c4
commit fa908e4ee1
6 changed files with 8 additions and 7 deletions

View File

@ -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 = [

View File

@ -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(

View File

@ -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;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Psalm\Internal\Provider\ParamsProvider;
use PhpParser\Node\Expr\ConstFetch;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Psalm\Internal\Provider\ParamsProvider;
use PhpParser\Node\Expr\ConstFetch;

View File

@ -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) {