Skip to content

Commit ac1465e

Browse files
minor #14148 Removed deprecations in VarDumper component (dosten)
This PR was merged into the 3.0-dev branch. Discussion ---------- Removed deprecations in VarDumper component | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 854300a Removed deprecations in VarDumper component
2 parents ccf58cd + 854300a commit ac1465e

File tree

1 file changed

+0
-23
lines changed
  • src/Symfony/Component/VarDumper/Cloner

1 file changed

+0
-23
lines changed

src/Symfony/Component/VarDumper/Cloner/Data.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -82,29 +82,6 @@ public function withRefHandles($useRefHandles)
8282
return $data;
8383
}
8484

85-
/**
86-
* Returns a depth limited clone of $this.
87-
*
88-
* @param int $maxDepth The max dumped depth level.
89-
* @param int $maxItemsPerDepth The max number of items dumped per depth level.
90-
* @param bool $useRefHandles False to hide ref. handles.
91-
*
92-
* @return self A depth limited clone of $this.
93-
*
94-
* @deprecated since Symfony 2.7, to be removed in 3.0. Use withMaxDepth, withMaxItemsPerDepth or withRefHandles instead.
95-
*/
96-
public function getLimitedClone($maxDepth, $maxItemsPerDepth, $useRefHandles = true)
97-
{
98-
trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0. Use withMaxDepth, withMaxItemsPerDepth or withRefHandles methods instead.', E_USER_DEPRECATED);
99-
100-
$data = clone $this;
101-
$data->maxDepth = (int) $maxDepth;
102-
$data->maxItemsPerDepth = (int) $maxItemsPerDepth;
103-
$data->useRefHandles = $useRefHandles ? -1 : 0;
104-
105-
return $data;
106-
}
107-
10885
/**
10986
* Dumps data with a DumperInterface dumper.
11087
*/

0 commit comments

Comments
 (0)