Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pointless check from conditional #2401

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Remove pointless check from conditional #2401

merged 1 commit into from
Nov 15, 2019

Conversation

dafriend
Copy link
Contributor

Because the argument $index has a type declaration of 'array' there is no point in using is_array($index) in the conditional. If $index is not an array an exception will have been thrown before we get to the if() statement.

Because the argument $index has a type declaration of 'array' there is no point in using is_array($index) in the conditional.
@MGatner MGatner merged commit 83023c6 into codeigniter4:develop Nov 15, 2019
@dafriend dafriend deleted the FileCollection-remove-pointless-check branch February 25, 2020 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants