Skip to content

Commit

Permalink
bump phpstan level, cast as bool
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman committed Nov 22, 2024
1 parent 1148488 commit 84ecefd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:
level: 3
level: 5
paths:
- src
2 changes: 1 addition & 1 deletion src/Json5Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function decode(string $json, ?bool $associative = false, int $dep

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

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

Expand Down

0 comments on commit 84ecefd

Please sign in to comment.