diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b08aa77..b763756a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ----- diff --git a/Caster/Caster.php b/Caster/Caster.php index a0efa651..cb62d5e3 100644 --- a/Caster/Caster.php +++ b/Caster/Caster.php @@ -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) { diff --git a/Cloner/Data.php b/Cloner/Data.php index 5a6997cf..8351c3c2 100644 --- a/Cloner/Data.php +++ b/Cloner/Data.php @@ -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. *