8000 Deprecated the ValueExporter · symfony/symfony@06d75a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06d75a7

Browse files
committed
Deprecated the ValueExporter
1 parent efb06fb commit 06d75a7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Symfony/Component/HttpKernel/DataCollector/Util/ValueExporter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@
1313

1414
/**
1515
* @author Bernhard Schussek <bschussek@gmail.com>
16+
*
17+
* @deprecated Deprecated since version 3.2, to be removed in 4.0. Use the VarDumper component instead.
1618
*/
1719
class ValueExporter
1820
{
21+
public function __construct()
22+
{
23+
@trigger_error(__CLASS__.' is deprecated since version 3.2 and will be removed in 4.0. Use the VarDumper component instead.', E_USER_DEPRECATED);
24+
}
25+
1926
/**
2027
* Converts a PHP value to a string.
2128
*

src/Symfony/Component/HttpKernel/Tests/DataCollector/Util/ValueExporterTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class ValueExporterTest extends \PHPUnit_Framework_TestCase
1720
{
1821
/**

0 commit comments

Comments
 (0)
0