Skip to content

Commit 146cbec

Browse files
committed
Remove pointless check from conditional
Because the argument $index has a type declaration of 'array' there is no point in using is_array($index) in the conditional.
1 parent 887150a commit 146cbec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/Files/FileCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ protected function fixFilesArray(array $data): array
310310
*/
311311
protected function getValueDotNotationSyntax(array $index, array $value)
312312
{
313-
if (is_array($index) && ! empty($index))
313+
if (! empty($index))
314314
{
315315
$current_index = array_shift($index);
316316
}

0 commit comments

Comments
 (0)