API page: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Ch...
At the end of the line
'#options' => array('SAT' => $this->t('SAT'), 'ACT' => $this->t('ACT'))),
only two parentheses are necessary instead of three.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | extra_closing_parenthesis-2747723-6.patch | 614 bytes | mayurjadhav |
| #5 | too_many_closing_paranthesis-2747723-5.patch | 614 bytes | pashupathi nath gajawada |
Comments
Comment #2
cilefen commentedComment #3
mayurjadhav commentedComment #4
mayurjadhav commentedRemoved extra paranthesis.
Comment #5
pashupathi nath gajawada commentedHi ,
As mentioned removed the extra paranthesis,
Please find the attached patch for the same.
Thanks,
Comment #6
mayurjadhav commentedI'm not sure whether to replace array() with [], but still uploaded both the changes.
Comment #7
ccjjmartin commented#5 and #6 Both look good to me. No functional tests were performed by myself but it appears to have the right number of parentheses now.
Hiding patch 6.1 to keep consistency.
Not sure how credit is normally assigned in a situation like this. #5 was the first to correctly solve the issue but user in #6 attempted first (and got halfway there) ... I would think #5 would be committed.
Seeing as three people agree I am marking this as RTBC to prevent further bikeshedding.
Comment #8
ccjjmartin commentedHiding #4 as it is incorrect.
Comment #9
ccjjmartin commentedComment #10
alexpottCommitted e616701 and pushed to 8.1.x and 8.2.x. Thanks!
@ccjjmartin - wrt to credit we credit everyone who has worked on the issue.