Skip to content

Commit 05c67ab

Browse files
authored
Merge pull request #21 from utopia-php/feat-generic-hints
Fix callback recevier
2 parents 53c2287 + 45696a6 commit 05c67ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pools/Pool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function setTelemetry(Telemetry $telemetry): static
198198
* Execute a callback with a managed connection
199199
*
200200
* @template T
201-
* @param callable(mixed): T $callback Function that receives the connection resource
201+
* @param callable(TResource): T $callback Function that receives the connection resource
202202
* @return T Return value from the callback
203203
*/
204204
public function use(callable $callback): mixed

0 commit comments

Comments
 (0)