From 146cbec20b273c236f104abb5554d1fb8623aaca Mon Sep 17 00:00:00 2001 From: dafriend Date: Thu, 14 Nov 2019 08:52:11 -0600 Subject: [PATCH] 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. --- system/HTTP/Files/FileCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/HTTP/Files/FileCollection.php b/system/HTTP/Files/FileCollection.php index 95f51cb490f0..1d76195d6bbb 100644 --- a/system/HTTP/Files/FileCollection.php +++ b/system/HTTP/Files/FileCollection.php @@ -310,7 +310,7 @@ protected function fixFilesArray(array $data): array */ protected function getValueDotNotationSyntax(array $index, array $value) { - if (is_array($index) && ! empty($index)) + if (! empty($index)) { $current_index = array_shift($index); }