Skip to content

Commit

Permalink
Update Connection.phpstub (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Jan 29, 2022
1 parent b9dc248 commit 52b058d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions stubs/Connection.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace Doctrine\DBAL;

use Doctrine\DBAL\Driver\Connection as DriverConnection;
use Doctrine\DBAL\Driver\Statement as DriverStatement;
use Doctrine\DBAL\Types\Type;

class Connection implements DriverConnection
{
Expand Down Expand Up @@ -60,17 +61,17 @@ class Connection implements DriverConnection
public function query(...$query): DriverStatement {}

/**
* @psalm-param scalar[] $params The query parameters.
* @psalm-param int[]|string[] $types The parameter types.
* @psalm-param array<mixed> $params The query parameters.
* @psalm-param array<int|string|null> $types The parameter types.
*
* @throws DBALException
* @psalm-taint-sink sql $query
*/
public function executeUpdate(string $query, array $params = [], array $types = []): int {}

/**
* @psalm-param scalar[] $params The query parameters.
* @psalm-param int[]|string[] $types The parameter types.
* @psalm-param list<mixed>|array<string, mixed> $params Statement parameters
* @psalm-param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types Parameter types
*
* @throws DBALException
* @psalm-taint-sink sql $sql
Expand All @@ -80,7 +81,7 @@ class Connection implements DriverConnection
/**
* @psalm-pure
*
* @psalm-param scalar $input
* @psalm-param mixed $input
* @psalm-return string
*
* @psalm-taint-escape sql
Expand Down

0 comments on commit 52b058d

Please sign in to comment.