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/cli/i18n/I18nFileTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cli/i18n/I18nFileTest.php') diff --git a/tests/cli/i18n/I18nFileTest.php b/tests/cli/i18n/I18nFileTest.php index d584fdd22..47464c2e2 100644 --- a/tests/cli/i18n/I18nFileTest.php +++ b/tests/cli/i18n/I18nFileTest.php @@ -12,7 +12,7 @@ class I18nFileTest extends PHPUnit\Framework\TestCase { $after = $this->computeFilesHash(); - $this->assertEquals($before, $after); + self::assertEquals($before, $after); } /** @return array */ @@ -30,7 +30,7 @@ class I18nFileTest extends PHPUnit\Framework\TestCase { continue; } - $hashes[$file->getPathName()] = sha1_file($file->getPathName()); + $hashes[$file->getPathname()] = sha1_file($file->getPathname()); } } -- cgit v1.2.3