From 6e62c3ddc57b3b84f6dad9d9e90302724565f102 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Fri, 8 Apr 2022 18:02:49 +0000 Subject: [PATCH] Remove unnecessary array_diff Signed-off-by: Christopher Ng --- apps/settings/tests/UserMigration/AccountMigratorTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/settings/tests/UserMigration/AccountMigratorTest.php b/apps/settings/tests/UserMigration/AccountMigratorTest.php index 74455bc91e1..051af68017c 100644 --- a/apps/settings/tests/UserMigration/AccountMigratorTest.php +++ b/apps/settings/tests/UserMigration/AccountMigratorTest.php @@ -91,11 +91,7 @@ class AccountMigratorTest extends TestCase { ]; }, array_filter( - array_diff( - scandir(self::ASSETS_DIR), - // Exclude current and parent directories - ['.', '..'], - ), + scandir(self::ASSETS_DIR), fn (string $filename) => pathinfo($filename, PATHINFO_EXTENSION) === 'json', ), ); -- 2.39.5