Skip to content

Commit 377ef3d

Browse files
committed
docs: restore @template with no types
1 parent bd17c8f commit 377ef3d

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

system/Database/BasePreparedQuery.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @template TConnection
2222
* @template TStatement
2323
* @template TResult
24+
*
25+
* @implements PreparedQueryInterface<TConnection, TStatement, TResult>
2426
*/
2527
abstract class BasePreparedQuery implements PreparedQueryInterface
2628
{
@@ -109,7 +111,7 @@ abstract public function _prepare(string $sql, array $options = []);
109111
* prepared query. Upon success, will return a Results object.
110112
*
111113
* @return bool|ResultInterface
112-
* @phpstan-return bool|ResultInterface
114+
* @phpstan-return bool|ResultInterface<TConnection, TResult>
113115
*
114116
* @throws DatabaseException
115117
*/

system/Database/BaseResult.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* @template TConnection
1919
* @template TResult
20+
*
21+
* @implements ResultInterface<TConnection, TResult>
2022
*/
2123
abstract class BaseResult implements ResultInterface
2224
{

system/Database/PreparedQueryInterface.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313

1414
use BadMethodCallException;
1515

16+
/**
17+
* @template TConnection
18+
* @template TStatement
19+
* @template TResult
20+
*/
1621
interface PreparedQueryInterface
1722
{
1823
/**
1924
* Takes a new set of data and runs it against the currently
2025
* prepared query. Upon success, will return a Results object.
2126
*
2227
* @return bool|ResultInterface
23-
* @phpstan-return bool|ResultInterface
28+
* @phpstan-return bool|ResultInterface<TConnection, TResult>
2429
*/
2530
public function execute(...$data);
2631

system/Database/ResultInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
use stdClass;
1515

16+
/**
17+
* @template TConnection
18+
* @template TResult
19+
*/
1620
interface ResultInterface
1721
{
1822
/**

0 commit comments

Comments
 (0)