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

array_key_exists only if is_array #3473

Open
wants to merge 1 commit into
base: 7.1
Choose a base branch
from
Open

Conversation

jerome2710
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets 3449

@@ -78,7 +78,7 @@ protected function streamOutput(ExportableInterface $adminList, $format)

$iterator = $adminList->getIterator();
foreach ($iterator as $item) {
if (\array_key_exists(0, $item)) {
if (\is_array($item) && \array_key_exists(0, $item)) {
Copy link
Contributor

@dannyvw dannyvw Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #3421, so I think it can be simplified to $itemObject = $item; Or remove everything and change the var $itemObject to $item

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.

2 participants