Skip to content

Commit

Permalink
Improve the generic types
Browse files Browse the repository at this point in the history
  • Loading branch information
stof authored and sebastianbergmann committed Mar 29, 2024
1 parent 148be7f commit 4facd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __destruct()
}

/**
* @psalm-template T
* @psalm-template T of object|array
*
* @psalm-param T $value
*
Expand All @@ -60,7 +60,7 @@ public function add(array|object &$value): false|int|string
}

/**
* @psalm-template T
* @psalm-template T of object|array
*
* @psalm-param T $value
*
Expand Down

0 comments on commit 4facd2a

Please sign in to comment.