From aafd636833eb7e171b863e5b07f8a087c0871c39 Mon Sep 17 00:00:00 2001 From: Ruslan Slinkov Date: Sat, 20 May 2017 13:45:30 +0700 Subject: [PATCH] Rolling new version out to Packagist. --- src/CustomCasts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }