Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b70471a

Browse files
committed
[VarDumper] remove deprecated features
1 parent 4d3c74b commit b70471a

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

src/Symfony/Component/VarDumper/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
CHANGELOG
22
=========
33

4+
4.0.0
5+
-----
6+
7+
* support for passing `\ReflectionClass` instances to the `Caster::castObject()`
8+
method has been dropped, pass class names as strings instead
9+
* the `Data::getRawData()` method has been removed
10+
411
2.7.0
512
-----
613

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ class Caster
4848
*/
4949
public static function castObject($obj, $class, $hasDebugInfo = false)
5050
{
51-
if ($class instanceof \ReflectionClass) {
52-
@trigger_error(sprintf('Passing a ReflectionClass to %s() is deprecated since version 3.3 and will be unsupported in 4.0. Pass the class name as string instead.', __METHOD__), E_USER_DEPRECATED);
53-
$hasDebugInfo = $class->hasMethod('__debugInfo');
54-
$class = $class->name;
55-
}
5651
if ($hasDebugInfo) {
5752
$a = $obj->__debugInfo();
5853
} elseif ($obj instanceof \Closure) {

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,6 @@ public function __toString()
165165
return sprintf('%s (count=%d)', $this->getType(), count($value));
166166
}
167167

168-
/**
169-
* @return array The raw data structure
170-
*
171-
* @deprecated since version 3.3. Use array or object access instead.
172-
*/
173-
public function getRawData()
174-
{
175-
@trigger_error(sprintf('The %s() method is deprecated since version 3.3 and will be removed in 4.0. Use the array or object access instead.', __METHOD__));
176-
177-
return $this->data;
178-
}
179-
180168
/**
181169
* Returns a depth limited clone of $this.
182170
*

0 commit comments

Comments
 (0)