1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Declare PdoStatement->fetchObject($class_name) a taint sink (#4701)

* Declare PdoStatement

* Change to a callable sink

Co-authored-by: Matthew Brown <github@muglug.com>
This commit is contained in:
Markus Staab 2020-11-25 21:50:19 +01:00 committed by Daniil Gentili
parent 3593a41060
commit 6474d7ee6c
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -2,6 +2,8 @@
class PdoStatement {
/**
* @psalm-taint-sink callable $class
*
* @template T
* @param class-string<T> $class
* @return false|T