Skip to content

Commit

Permalink
[VarDumper] remove deprecated features
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed May 21, 2017
1 parent ffc4739 commit 18e4a4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

4.0.0
-----

* support for passing `\ReflectionClass` instances to the `Caster::castObject()`
method has been dropped, pass class names as strings instead
* the `Data::getRawData()` method has been removed

2.7.0
-----

Expand Down
5 changes: 0 additions & 5 deletions Caster/Caster.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ class Caster
*/
public static function castObject($obj, $class, $hasDebugInfo = false)
{
if ($class instanceof \ReflectionClass) {
@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);
$hasDebugInfo = $class->hasMethod('__debugInfo');
$class = $class->name;
}
if ($hasDebugInfo) {
$a = $obj->__debugInfo();
} elseif ($obj instanceof \Closure) {
Expand Down
12 changes: 0 additions & 12 deletions Cloner/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,6 @@ public function __toString()
return sprintf('%s (count=%d)', $this->getType(), count($value));
}

/**
* @return array The raw data structure
*
* @deprecated since version 3.3. Use array or object access instead.
*/
public function getRawData()
{
@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__));

return $this->data;
}

/**
* Returns a depth limited clone of $this.
*
Expand Down

0 comments on commit 18e4a4c

Please sign in to comment.