Skip to content

Commit 84ecefd

Browse files
committed
bump phpstan level, cast as bool
1 parent 1148488 commit 84ecefd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
parameters:
2-
level: 3
2+
level: 5
33
paths:
44
- src

src/Json5Decoder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function decode(string $json, ?bool $associative = false, int $dep
6363

6464
// Fall back to JSON5 if that fails
6565
$associative = $associative === true || ($associative === null && $flags & \JSON_OBJECT_AS_ARRAY);
66-
$castBigIntToString = $flags & \JSON_BIGINT_AS_STRING;
66+
$castBigIntToString = (bool) ($flags & \JSON_BIGINT_AS_STRING);
6767

6868
$decoder = new self($json, $associative, $depth, $castBigIntToString);
6969

0 commit comments

Comments
 (0)