mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Apply code review remarks
This commit is contained in:
parent
c754a0ea08
commit
165df42e00
@ -111,11 +111,15 @@ class PDO
|
||||
public function lastInsertId(?string $name = null) {}
|
||||
|
||||
/**
|
||||
* @psalm-taint-sink sql $query
|
||||
*
|
||||
* @return PDOStatement|false
|
||||
*/
|
||||
public function prepare(string $query, array $options = []) {}
|
||||
|
||||
/**
|
||||
* @psalm-taint-sink sql $query
|
||||
*
|
||||
* @return PDOStatement|false
|
||||
*/
|
||||
public function query(string $query, ?int $fetchMode = null) {}
|
||||
@ -146,6 +150,10 @@ class PDOStatement implements Traversable
|
||||
* @return false|T
|
||||
*/
|
||||
public function fetchObject($class = \stdclass::class, array $ctorArgs = array()) {}
|
||||
|
||||
public function bindValue(string|int $param, mixed $value, int $type = PDO::PARAM_STR): bool {}
|
||||
|
||||
public function bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool {}
|
||||
}
|
||||
|
||||
class PDOException extends RuntimeException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user