Skip to content

Commit e94f9fa

Browse files
committed
[ci] add downgrade of nette/utils to use json_decode() for old PHP
1 parent 896b6eb commit e94f9fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: .github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,10 @@ jobs:
158158
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '7.3'
159159
run: "composer require --dev phpunit/phpunit:^7.5.20 --update-with-dependencies"
160160

161+
# in PHP 7.1, the json_decode() 2nd parameter requires bool, while PHP 7.2 it's null|int
162+
- name: "Downgrade nette/utils"
163+
if: matrix.php-version == '7.1'
164+
run: "composer require --dev nette/utils:^2.3 nette/forms:^2.4 --update-with-dependencies"
165+
161166
- name: "PHPStan"
162167
run: "make phpstan"

0 commit comments

Comments
 (0)