Add void return to method in tests. (#20602)

This commit is contained in:
Wilmer Arambula
2025-10-14 06:37:35 -03:00
committed by GitHub
parent 30824c5dcf
commit d71f7309ae
249 changed files with 2749 additions and 2538 deletions

View File

@@ -37,7 +37,7 @@ class DbQueryDependencyTest extends DatabaseTestCase
$db->createCommand()->insert('dependency_item', ['value' => 'initial'])->execute();
}
public function testIsChanged()
public function testIsChanged(): void
{
$db = $this->getConnection(false);
$cache = new ArrayCache();
@@ -62,7 +62,7 @@ class DbQueryDependencyTest extends DatabaseTestCase
/**
* @depends testIsChanged
*/
public function testCustomMethod()
public function testCustomMethod(): void
{
$db = $this->getConnection(false);
$cache = new ArrayCache();
@@ -86,7 +86,7 @@ class DbQueryDependencyTest extends DatabaseTestCase
/**
* @depends testCustomMethod
*/
public function testCustomMethodCallback()
public function testCustomMethodCallback(): void
{
$db = $this->getConnection(false);
$cache = new ArrayCache();
@@ -112,7 +112,7 @@ class DbQueryDependencyTest extends DatabaseTestCase
/**
* @depends testCustomMethod
*/
public function testReusableAndCustomMethodCallback()
public function testReusableAndCustomMethodCallback(): void
{
$db = $this->getConnection(false);
$cache = new ArrayCache();