Skip to content

Commit 19668b2

Browse files
committed
bug #37383 [VarDumper] Support for cURL handler objects (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- [VarDumper] Support for cURL handler objects | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #37378 | License | MIT | Doc PR | N/A Commits ------- 39c1a63 [VarDumper] Support for cURL handler objects.
2 parents 968bd0f + 39c1a63 commit 19668b2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
*/
2121
class ResourceCaster
2222
{
23+
/**
24+
* @param \CurlHandle|resource $h
25+
*
26+
* @return array
27+
*/
2328
public static function castCurl($h, array $a, Stub $stub, $isNested)
2429
{
2530
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