Skip to content

Commit 80205fd

Browse files
committed
Adds test for PHP 8.4.
1 parent 18cc85c commit 80205fd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-22.04
1010
strategy:
1111
matrix:
12-
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
12+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1313
name: PHP ${{ matrix.php }}
1414
steps:
1515
- uses: actions/checkout@v3

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
},
2626
"require-dev": {
2727
"friendsofphp/php-cs-fixer": "^3.0",
28-
"phpstan/phpstan": "^1.0",
29-
"phpstan/phpstan-phpunit": "^1.0",
30-
"phpstan/phpstan-strict-rules": "^1.0",
31-
"phpstan/phpstan-webmozart-assert": "^1.0",
28+
"phpstan/phpstan": "^1.0 || ^2.0",
29+
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
30+
"phpstan/phpstan-strict-rules": "^1.0 || ^2.0",
31+
"phpstan/phpstan-webmozart-assert": "^1.0 || ^2.0",
3232
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0"
3333
},
3434
"config": {

tests/FeedTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testFeedCreation1(): void
6767
}
6868

6969
$valid = Feed::validate($feed->getDocument(), $errors);
70-
self::assertTrue($valid, self::formatXmlErrors($errors));
70+
self::assertTrue($valid, self::formatXmlErrors($errors ?? []));
7171

7272
$xml = $feed->saveXML();
7373
assert(false !== $xml);
@@ -99,7 +99,7 @@ public function testFeedCreation2(): void
9999
}
100100

101101
$valid = Feed::validate($feed->getDocument(), $errors);
102-
self::assertTrue($valid, self::formatXmlErrors($errors));
102+
self::assertTrue($valid, self::formatXmlErrors($errors ?? []));
103103

104104
$xml = $feed->saveXML();
105105
assert(false !== $xml);
@@ -127,7 +127,7 @@ public function testFeedCreation3(): void
127127
}
128128

129129
$valid = Feed::validate($feed->getDocument(), $errors);
130-
self::assertTrue($valid, self::formatXmlErrors($errors));
130+
self::assertTrue($valid, self::formatXmlErrors($errors ?? []));
131131

132132
$xml = $feed->saveXML();
133133
assert(false !== $xml);
@@ -161,7 +161,7 @@ public function testFeedCreation4(): void
161161
}
162162

163163
$valid = Feed::validate($feed->getDocument(), $errors);
164-
self::assertTrue($valid, self::formatXmlErrors($errors));
164+
self::assertTrue($valid, self::formatXmlErrors($errors ?? []));
165165

166166
$xml = $feed->saveXML();
167167
assert(false !== $xml);

0 commit comments

Comments
 (0)