Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jul 25, 2023
1 parent 8cc5af9 commit a281117
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Psalm/Internal/Codebase/ClassLikes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2357,6 +2357,15 @@ public function addThreadData(array $thread_data): void
$this->existing_interfaces = self::mergeThreadData($existing_interfaces, $this->existing_interfaces);
$this->existing_classes = self::mergeThreadData($existing_classes, $this->existing_classes);
}

/**
* @template T as string|lowercase-string
*
* @param array<T, bool> $old
* @param array<T, bool> $new
*
* @return array<T, bool>
*/
private static function mergeThreadData(array $old, array $new): array
{
foreach ($new as $name => $value) {
Expand Down

0 comments on commit a281117

Please sign in to comment.