Fix more template types

This commit is contained in:
Niklas Keller 2022-09-23 20:30:55 +02:00
parent b2a7d46eb0
commit 73596dffc1
No known key found for this signature in database
GPG Key ID: AFA536ABA90C76A6
5 changed files with 10 additions and 10 deletions

View File

@ -3,8 +3,8 @@
namespace Amp\Sql;
/**
* @template TResult extends Result
* @template TStatement extends Statement
* @template TResult of Result
* @template TStatement of Statement
*/
interface Executor extends TransientResource
{

View File

@ -3,9 +3,9 @@
namespace Amp\Sql;
/**
* @template TResult extends Result
* @template TStatement extends Statement
* @template TTransaction extends Transaction
* @template TResult of Result
* @template TStatement of Statement
* @template TTransaction of Transaction
*
* @extends Executor<TResult, TStatement>
*/

View File

@ -5,8 +5,8 @@ namespace Amp\Sql;
use Amp\Cancellation;
/**
* @template TConfig extends SqlConfig
* @template TLink extends Link
* @template TConfig of SqlConfig
* @template TLink of Link
*/
interface SqlConnector
{

View File

@ -3,7 +3,7 @@
namespace Amp\Sql;
/**
* @template TResult extends Result
* @template TResult of Result
*/
interface Statement extends TransientResource
{

View File

@ -3,8 +3,8 @@
namespace Amp\Sql;
/**
* @template TResult extends Result
* @template TStatement extends Statement
* @template TResult of Result
* @template TStatement of Statement
* @extends Executor<TResult, TStatement>
*/
interface Transaction extends Executor