From 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 13:02:04 +0200 Subject: A few additional PHPStan rules (#5388) A subset of https://github.com/phpstan/phpstan-strict-rules --- tests/app/Utils/passwordUtilTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/app/Utils/passwordUtilTest.php') diff --git a/tests/app/Utils/passwordUtilTest.php b/tests/app/Utils/passwordUtilTest.php index 113476c63..e2fe78b97 100644 --- a/tests/app/Utils/passwordUtilTest.php +++ b/tests/app/Utils/passwordUtilTest.php @@ -6,7 +6,7 @@ class passwordUtilTest extends PHPUnit\Framework\TestCase { $ok = FreshRSS_password_Util::check($password); - $this->assertTrue($ok); + self::assertTrue($ok); } public function testCheckReturnsFalseIfEmpty(): void { @@ -14,7 +14,7 @@ class passwordUtilTest extends PHPUnit\Framework\TestCase { $ok = FreshRSS_password_Util::check($password); - $this->assertFalse($ok); + self::assertFalse($ok); } public function testCheckReturnsFalseIfLessThan7Characters(): void { @@ -22,6 +22,6 @@ class passwordUtilTest extends PHPUnit\Framework\TestCase { $ok = FreshRSS_password_Util::check($password); - $this->assertFalse($ok); + self::assertFalse($ok); } } -- cgit v1.2.3