Browse Source

Cast Number settings as integer instead of float

Bubka 3 years ago
parent
commit
6fab74368f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/AppstractOptionsService.php

+ 1 - 1
app/Services/AppstractOptionsService.php

@@ -86,7 +86,7 @@ class AppstractOptionsService implements SettingServiceInterface
      */
     private function restoreType($value)
     {
-        $value = is_numeric($value) ? (float) $value : $value;
+        $value = is_numeric($value) ? (int) $value : $value;
 
         if( $value === '{{}}' ) {
             return false;