Skip to content

Commit cb04682

Browse files
committed
Add compatibility with PHP version 8
1 parent c3ee707 commit cb04682

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.3"
25+
"php": "^7.3 || ^8.0"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^9",

tests/GitChangelogTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ public function testSetLabelsRaisesNotice()
185185
{
186186
$changeLog = new GitChangelog();
187187

188-
$this->expectNotice();
188+
$this->expectNotice(); // PHP version ^7.3
189+
if (version_compare(PHP_VERSION, '8.0.0') >= 0) {
190+
$this->expectWarning(); // PHP version ^8
191+
}
189192
$changeLog->setLabels([]);
190193
}
191194

0 commit comments

Comments
 (0)