diff --git a/src/CastsEnums.php b/src/CastsEnums.php index c00ab64..0f96e01 100644 --- a/src/CastsEnums.php +++ b/src/CastsEnums.php @@ -62,7 +62,7 @@ public function setAttribute($key, $value) { if ($this->isEnumAttribute($key)) { $enumClass = $this->getEnumClass($key); - if (! $value instanceof $enumClass) { + if (!$value instanceof $enumClass) { $value = new $enumClass($value); }