Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 27, 2023
1 parent 9e53568 commit fa908e4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Codebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ public function getCompletionItemsForClassishThing(
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 = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,6 @@ public static function verifyType(
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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,9 @@ private static function handlePossiblyMatchingByRefParam(
$function_params,
static function (
?FunctionLikeParameter $function_param,
FunctionLikeParameter $param
FunctionLikeParameter $param,
) use (
$arg
$arg,
) {
if ($param->name === $arg->name->name) {
return $param;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Psalm\Internal\Provider\ParamsProvider;

use PhpParser\Node\Expr\ConstFetch;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Psalm\Internal\Provider\ParamsProvider;

use PhpParser\Node\Expr\ConstFetch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public static function reconcile(
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) {
Expand Down

0 comments on commit fa908e4

Please sign in to comment.