Skip to content

Commit 4890354

Browse files
committed
Fix ResourceCaster deprecation messages
1 parent 12d5368 commit 4890354

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)