Skip to content

Commit

Permalink
Add curl stubs to prevent crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-tekiela committed Feb 13, 2023
1 parent 9921625 commit 8eebebe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions stubs/Php80.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,24 @@ class DatePeriod implements IteratorAggregate
* @psalm-taint-sink ssrf $url
*/
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()
{
}
}

0 comments on commit 8eebebe

Please sign in to comment.