Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Connection.phpstub #110

Merged
merged 1 commit into from
Jan 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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