Skip to content

Commit 3583d70

Browse files
committed
[VarDumper] Support for cURL handler objects.
1 parent 33c6766 commit 3583d70

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Component/VarDumper/Caster/ResourceCaster.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
*/
2121
class ResourceCaster
2222
{
23+
/**
24+
* @param \CurlHandle|resource $h
25+
* @return array
26+
*/
2327
public static function castCurl($h, array $a, Stub $stub, $isNested)
2428
{
2529
return curl_getinfo($h);

src/Symfony/Component/VarDumper/Cloner/AbstractCloner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ abstract class AbstractCloner implements ClonerInterface
117117
'DateTimeZone' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castTimeZone'],
118118
'DatePeriod' => ['Symfony\Component\VarDumper\Caster\DateCaster', 'castPeriod'],
119119

120+
'CurlHandle' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castCurl'],
120121
':curl' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castCurl'],
122+
121123
':dba' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'],
122124
':dba persistent' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castDba'],
123125
':gd' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castGd'],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy