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

@ -15,7 +15,7 @@ use yiiunit\TestCase;
class PjaxTest extends TestCase
{
public function testGeneratedIdByPjaxWidget()
public function testGeneratedIdByPjaxWidget(): void
{
ListView::$counter = 0;
Pjax::$counter = 0;
@ -43,7 +43,7 @@ class PjaxTest extends TestCase
/**
* @see https://github.com/yiisoft/yii2/issues/15536
*/
public function testShouldTriggerInitEvent()
public function testShouldTriggerInitEvent(): void
{
$initTriggered = false;
ob_start();