Skip to content

Commit eab5ef8

Browse files
minor #60810 [VarDumper] Fix ResourceCaster deprecation messages (derrabus)
This PR was merged into the 7.3 branch. Discussion ---------- [VarDumper] Fix ResourceCaster deprecation messages | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT We pass more arguments to `trigger_deprecation()` than the deprecation message has placeholders. Commits ------- 8132e2529e9 Fix ResourceCaster deprecation messages
2 parents 93d816e + 4890354 commit eab5ef8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Caster/ResourceCaster.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ResourceCaster
2929
*/
3030
public static function castCurl(\CurlHandle $h, array $a, Stub $stub, bool $isNested): array
3131
{
32-
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__, CurlCaster::class);
32+
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__);
3333

3434
return CurlCaster::castCurl($h, $a, $stub, $isNested);
3535
}
@@ -75,7 +75,7 @@ public static function castStreamContext($stream, array $a, Stub $stub, bool $is
7575
*/
7676
public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array
7777
{
78-
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__, GdCaster::class);
78+
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__);
7979

8080
return GdCaster::castGd($gd, $a, $stub, $isNested);
8181
}
@@ -85,7 +85,7 @@ public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested
8585
*/
8686
public static function castOpensslX509(\OpenSSLCertificate $h, array $a, Stub $stub, bool $isNested): array
8787
{
88-
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__, OpenSSLCaster::class);
88+
trigger_deprecation('symfony/var-dumper', '7.3', 'The "%s()" method is deprecated without replacement.', __METHOD__);
8989

9090
return OpenSSLCaster::castOpensslX509($h, $a, $stub, $isNested);
9191
}

0 commit comments

Comments
 (0)