mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Add void return to method in tests. (#20602)
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
|
||||
namespace yiiunit\framework\data;
|
||||
|
||||
use ReflectionClass;
|
||||
use yii\data\BaseDataProvider;
|
||||
use yiiunit\TestCase;
|
||||
|
||||
@ -16,9 +17,9 @@ use yiiunit\TestCase;
|
||||
*/
|
||||
class BaseDataProviderTest extends TestCase
|
||||
{
|
||||
public function testGenerateId()
|
||||
public function testGenerateId(): void
|
||||
{
|
||||
$rc = new \ReflectionClass(BaseDataProvider::className());
|
||||
$rc = new ReflectionClass(BaseDataProvider::className());
|
||||
$rp = $rc->getProperty('counter');
|
||||
|
||||
// @link https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible
|
||||
|
||||
Reference in New Issue
Block a user