Skip to content

Commit

Permalink
Rolling new version out to Packagist.
Browse files Browse the repository at this point in the history
  • Loading branch information
slruslan committed May 20, 2017
1 parent b7659bf commit aafd636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CustomCasts.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ protected function getCastType($key)
return ($this->getCasts()[$key]);
}


/**
* Cast an attribute to a native PHP type.
*
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit aafd636

Please sign in to comment.