phpstan level 8 preparation

This commit is contained in:
Spine
2025-07-28 16:55:16 +02:00
parent 889766f032
commit 3e9b2bcb4f
37 changed files with 560 additions and 330 deletions
+4 -1
View File
@@ -62,7 +62,10 @@ class DownloadTest extends TestCase {
// torrent snatch list is handled in another test
$ratelimit = new User\UserclassRateLimit($this->userList['down']);
$this->assertFalse(is_nan($ratelimit->userclassFactor()), 'download-ratelimit-userclass-factor');
$this->assertFalse(
is_nan($ratelimit->userclassFactor()),
'download-ratelimit-userclass-factor',
);
$this->assertTrue(is_nan($ratelimit->userFactor()), 'download-ratelimit-user-factor');
$this->assertFalse($ratelimit->hasExceededFactor(), 'download-ratelimit-factor');
$this->assertFalse($ratelimit->hasExceededTotal(), 'download-ratelimit-total');