Skip to content

Commit d535ff6

Browse files
committed
[VarDumper] deprecate MongoCaster
1 parent 6651af0 commit d535ff6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Component/VarDumper/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* added `AbstractCloner::setMinDepth()` function to ensure minimum tree depth
8+
* deprecated `MongoCaster`
89

910
2.7.0
1011
-----

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313

1414
use Symfony\Component\VarDumper\Cloner\Stub;
1515

16+
@trigger_error('The '.__NAMESPACE__.'\MongoCaster class is deprecated since version 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
17+
1618
/**
1719
* Casts classes from the MongoDb extension to array representation.
1820
*
1921
* @author Nicolas Grekas <[email protected]>
22+
*
23+
* @deprecated since version 3.4, to be removed in 4.0.
2024
*/
2125
class MongoCaster
2226
{

0 commit comments

Comments
 (0)