From 978ca3df1e426f67d1bdb5c2682e32c83e3a0677 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 21 Nov 2024 09:43:33 +0700 Subject: [PATCH] refactor: remove unused (array) cast on array --- tests/system/Helpers/ArrayHelperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/Helpers/ArrayHelperTest.php b/tests/system/Helpers/ArrayHelperTest.php index a7ed8ae8ec8a..77079d2a5a2b 100644 --- a/tests/system/Helpers/ArrayHelperTest.php +++ b/tests/system/Helpers/ArrayHelperTest.php @@ -268,7 +268,7 @@ public function testArraySortByMultipleKeysWithObjects(array $data, array $sortC $success = array_sort_by_multiple_keys($data, $sortColumns); $this->assertTrue($success); - $this->assertSame($expected, array_column((array) $data, 'name')); + $this->assertSame($expected, array_column($data, 'name')); } #[DataProvider('provideSortByMultipleKeys')]