diff --git a/src/CustomCasts.php b/src/CustomCasts.php index 104a614..a7b7475 100644 --- a/src/CustomCasts.php +++ b/src/CustomCasts.php @@ -17,7 +17,6 @@ protected function getCastType($key) return ($this->getCasts()[$key]); } - /** * Cast an attribute to a native PHP type. * @@ -133,8 +132,9 @@ protected function isCustomCastable($key) */ protected function toClass($class, $value) { - if(!class_exists($class)) + if(!class_exists($class)) { return $value; + } return unserialize($value); }