Skip to content

Commit 846a9f7

Browse files
committed
Fix PHP 7.0 CI checks
1 parent fbdce59 commit 846a9f7

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
run: composer test
3333

3434
- name: Run tests with coverage
35+
run: composer test-coverage
36+
37+
- name: Build Clover coverage report
3538
run: >-
36-
php -d xdebug.mode=coverage
37-
./vendor/phpunit/phpunit/phpunit
39+
php ./vendor/phpunit/phpunit/phpunit
3840
--configuration ./continuous-integration/phpunit/phpunit.xml
3941
--colors=always
4042
--coverage-clover coverage.xml

src/SbWereWolf/XmlNavigator/Extraction/PrettyPrintComposer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ private static function firstKey(array $value)
271271
return null;
272272
}
273273

274+
/**
275+
* @param array<mixed, mixed> $value
276+
*/
274277
private static function isList(array $value): bool
275278
{
276279
return $value === array_values($value);

src/SbWereWolf/XmlNavigator/Navigation/XmlElement.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ private static function isHierarchySequence($value): bool
260260
return true;
261261
}
262262

263+
/**
264+
* @param array<mixed, mixed> $value
265+
*/
263266
private static function isList(array $value): bool
264267
{
265268
return $value === array_values($value);

0 commit comments

Comments
 (0)