Skip to content

Commit

Permalink
Merge pull request #10032 from cgocast/master
Browse files Browse the repository at this point in the history
#10030 Fix missing TaintedSql
  • Loading branch information
orklah committed Jul 23, 2023
2 parents 616d9e0 + 719496b commit 3c08110
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/extensions/pdo.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ class PDOStatement implements Traversable
* @return false|T
*/
public function fetchObject($class = \stdclass::class, array $ctorArgs = array()) {}

/**
* @psalm-taint-sink sql $value
*/
public function bindValue(string|int $param, mixed $value, int $type = PDO::PARAM_STR): bool {}

/**
* @psalm-taint-sink sql $var
*/
public function bindParam(string|int $param, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool {}
}

class PDOException extends RuntimeException {
Expand Down

0 comments on commit 3c08110

Please sign in to comment.