Commit baca360a authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(supann) Remove syntax unsupported by PHP 7.0

The shorthand [] syntax for list appeared in PHP 7.1 and FD 1.4 is
 supposed to support PHP 7.0.

issue #6032
parent f4a18409
......@@ -93,9 +93,9 @@ class SupannEtuInscriptionAttribute extends SupannCompositeAttribute
$this->diplomas = [];
foreach ($prefixedChoices as $prefix => $choices) {
[$choicesId, $choicesLines] = $choices;
list($choicesId, $choicesLines) = $choices;
foreach ($choicesId as $i => $id) {
[$type,$sectdisc,$label1,$label2] = $choicesLines[$i];
list($type,$sectdisc,$label1,$label2) = $choicesLines[$i];
if (!empty($label2)) {
$label1 .= ' - '.$label2;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment