diff --git a/src/Peach/DF/JsonCodec.php b/src/Peach/DF/JsonCodec.php
index <HASH>..<HASH> 100644
--- a/src/Peach/DF/JsonCodec.php
+++ b/src/Peach/DF/JsonCodec.php
@@ -209,7 +209,7 @@ class JsonCodec implements Codec
         $opt    = 1;
         $result = new ArrayMap();
         while ($options) {
-            $result->put($opt, boolval($options % 2));
+            $result->put($opt, (bool) ($options % 2));
             $options >>= 1;
             $opt     <<= 1;
         }
Replaced boolval() with cast (bool) because of the PHP version support range