Define template type on Result::getNextResult() return

This commit is contained in:
Aaron Piotrowski 2022-12-17 21:44:57 -06:00
parent 261ab56609
commit 1f93ed0e0d
No known key found for this signature in database
GPG Key ID: 5B456E6AABA44A63

View File

@ -19,8 +19,10 @@ interface Result extends \Traversable
/**
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if
* no further results are available.
*
* @return Result<TFieldValue>|null
*/
public function getNextResult(): ?Result;
public function getNextResult(): ?self;
/**
* Returns the number of rows affected or returned by the query if applicable or null if the number of rows is