Bläddra i källkod

Cast Number settings as integer instead of float

Bubka 3 år sedan
förälder
incheckning
6fab74368f
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)
     private function restoreType($value)
     {
     {
-        $value = is_numeric($value) ? (float) $value : $value;
+        $value = is_numeric($value) ? (int) $value : $value;
 
 
         if( $value === '{{}}' ) {
         if( $value === '{{}}' ) {
             return false;
             return false;