Skip to content

Commit 3874da0

Browse files
committed
chore: cs fix
1 parent 3daba08 commit 3874da0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Helper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public static function arrayColumn($array, $columnKey, $indexKey = null)
4343
if (!\is_array($array)) {
4444
\trigger_error('array_column() expects parameter 1 to be array', E_USER_WARNING);
4545

46-
return null;
46+
return;
4747
}
4848

4949
if (null !== $columnKey) {
5050
if (\is_object($columnKey) && !\method_exists($columnKey, '__toString')) {
5151
\trigger_error('array_column() expects parameter 2 to be number/string/null', E_USER_WARNING);
5252

53-
return null;
53+
return;
5454
}
5555

5656
$columnKey = \is_float($columnKey) ? (int) $columnKey : (string) $columnKey;
@@ -60,14 +60,14 @@ public static function arrayColumn($array, $columnKey, $indexKey = null)
6060
if (\is_object($indexKey) && !\method_exists($indexKey, '__toString')) {
6161
\trigger_error('array_column() expects parameter 3 to be number/string/null', E_USER_WARNING);
6262

63-
return null;
63+
return;
6464
}
6565

6666
$indexKey = \is_float($indexKey) ? (int) $indexKey : (string) $indexKey;
6767
}
6868

6969
foreach ($array as $value) {
70-
$objectVars = \is_object($value) ? \get_object_vars($value) : array();
70+
$objectVars = \is_object($value) ? \get_object_vars($value) : [];
7171

7272
$key = null;
7373
if (null !== $indexKey) {

0 commit comments

Comments
 (0)