mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
N°3091 Update PHPUnit to 8.5 : fix setUp and teardDown methods signatures
"Return type declaration must be compatible with parent"
See https://phpunit.de/announcements/phpunit-8.html "Return Type of Template Methods"
Was done in support/2.7 (ec143c43) but there is one new test in this branch...
This commit is contained in:
@@ -48,7 +48,7 @@ class QueryTest extends ItopDataTestCase
|
||||
private $oUser;
|
||||
|
||||
/** @inheritDoc */
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
@@ -191,7 +191,7 @@ class QueryTest extends ItopDataTestCase
|
||||
}
|
||||
|
||||
/** @inheritDoc */
|
||||
protected function tearDown()
|
||||
protected function tearDown(): void
|
||||
{
|
||||
$this->oUser->DBDelete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user