1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/stubs/pdo.php
Markus Staab 6474d7ee6c
Declare PdoStatement->fetchObject($class_name) a taint sink (#4701)
* Declare PdoStatement

* Change to a callable sink

Co-authored-by: Matthew Brown <github@muglug.com>
2021-01-29 11:46:26 +01:00

13 lines
229 B
PHP

<?php
class PdoStatement {
/**
* @psalm-taint-sink callable $class
*
* @template T
* @param class-string<T> $class
* @return false|T
*/
public function fetchObject($class = "stdclass") {}
}