Skip to content

Commit

Permalink
Merge pull request #30 from tacman/main
Browse files Browse the repository at this point in the history
tweaks to CI
  • Loading branch information
colinodell authored Nov 25, 2024
2 parents b07a1da + 84ecefd commit 8d56f60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
continue-on-error: ${{ !matrix.stable }}
strategy:
matrix:
php: ['8.0', 8.1', '8.2', '8.3']
php: ['8.0', '8.1', '8.2', '8.3','8.4']
stable: [true]
coverage: [true]
composer-flags: ['']
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"require-dev": {
"mikehaertl/php-shellcommand": "^1.7.0",
"phpstan/phpstan": "^1.10.57",
"phpstan/phpstan": "^2.0",
"scrutinizer/ocular": "^1.9",
"squizlabs/php_codesniffer": "^3.8.1",
"symfony/finder": "^6.0|^7.0",
Expand Down
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 8d56f60

Please sign in to comment.