1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add curl stubs to prevent crashes

This commit is contained in:
Kamil Tekiela 2023-02-13 16:09:07 +00:00
parent 9921625691
commit 8eebebef62

View File

@ -239,3 +239,24 @@ class DatePeriod implements IteratorAggregate
* @psalm-taint-sink ssrf $url * @psalm-taint-sink ssrf $url
*/ */
function get_headers(string $url, bool $associative = false, $context = null) : array|false {} function get_headers(string $url, bool $associative = false, $context = null) : array|false {}
final class CurlHandle
{
private function __construct()
{
}
}
final class CurlMultiHandle
{
private function __construct()
{
}
}
final class CurlShareHandle
{
private function __construct()
{
}
}