-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
[BUGFIX] Fix access to array key with array #280
[BUGFIX] Fix access to array key with array #280
Conversation
Within the foreach loop, $sysLanguageUid is not only the language uid, but an array, where the language uid is the key of the array. This fix separates the array from the key, so that $sysLanguageUid is only the key (and therefore the integer language uid). Resolves: fnagel#279
Interesting. Why am I not allowed to use $_? |
I think in this case it makes sense. Maybe we can just suppress it here? https://phpmd.org/documentation/suppress-warnings.html Using |
I have no idea why this checks are waiting for a PHP 7.3 run. Maybe I close and reopen the PR? |
Close and reopen in order to start the checks again... |
I don't get it. The PHP 7.3 check isn't even listed: https://github.com/fnagel/t3extblog/pull/280/checks |
After testing this locally, I will force merge it! |
Thanks, Felix! Forcing is always an option :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 by reading and testing
Within the foreach loop, $sysLanguageUid is not only the language uid, but an array, where the language uid is the key of the array. This fix separates the array from the key, so that $sysLanguageUid is only the key (and therefore the integer language uid).
Resolves: #279