Skip to content

Commit 0b80375

Browse files
committed
Fixed Declaration of Kir\MySQL\Common\DBTestCase::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void
1 parent c8753a2 commit 0b80375

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
install:
1919
- |
2020
# Install PHPUnit v9 on PHP 8
21-
if dpkg --compare-versions "${TRAVIS_PHP_VERSION}" ge 8.0; then
21+
if [ "${TRAVIS_PHP_VERSION}" == nightly ] || [ dpkg --compare-versions "${TRAVIS_PHP_VERSION}" ge 8.0 ]; then
2222
travis_retry composer require --no-interaction --prefer-dist --dev --ignore-platform-reqs "phpunit/phpunit" 9.*
2323
# Enable test on PHP 7.1+
2424
else

tests/Common/DBTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ protected function use(Closure $fn) {
2929
TestDB::use($fn);
3030
}
3131

32-
protected function setUp() {
32+
protected function setUp(): void {
3333
parent::setUp();
3434
$this->db = new TestDB();
3535
$this->db->exec('USE travis_test');
3636
}
3737

38-
protected function tearDown() {
38+
protected function tearDown(): void {
3939
parent::tearDown();
4040
$this->db->close();
4141
$this->db = null;

0 commit comments

Comments
 (0)