Skip to content

Commit 8d56f60

Browse files
authored
Merge pull request #30 from tacman/main
tweaks to CI
2 parents b07a1da + 84ecefd commit 8d56f60

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
continue-on-error: ${{ !matrix.stable }}
3030
strategy:
3131
matrix:
32-
php: ['8.0', 8.1', '8.2', '8.3']
32+
php: ['8.0', '8.1', '8.2', '8.3','8.4']
3333
stable: [true]
3434
coverage: [true]
3535
composer-flags: ['']

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"require-dev": {
2727
"mikehaertl/php-shellcommand": "^1.7.0",
28-
"phpstan/phpstan": "^1.10.57",
28+
"phpstan/phpstan": "^2.0",
2929
"scrutinizer/ocular": "^1.9",
3030
"squizlabs/php_codesniffer": "^3.8.1",
3131
"symfony/finder": "^6.0|^7.0",

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)