Commit 68d6cd41 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(sinaps) Fix continue targetting switches

Fixes warning in PHP>=7.3

issue #6016
parent 09ff51bc
......@@ -164,12 +164,12 @@ class sinapsRequest
case 'ADR':
if ((string)$method->adresse->temoinAdressePrincipale != 'true') {
trigger_error('Ignore adresse non principale');
continue;
continue 2;
}
$adresse = $this->convertAddress($method->adresse);
if ($adresse === FALSE) {
trigger_error('Ignore adresse non FR non ETR');
continue;
continue 2;
}
$values['entite']['postalAddress'] = $adresse;
break;
......@@ -325,12 +325,12 @@ class sinapsRequest
case 'ADR':
if ((string)$method->adresse->temoinAdressePrincipale != 'true') {
trigger_error('Ignore adresse non principale');
continue;
continue 2;
}
$adresse = $this->convertAddress($method->adresse);
if ($adresse === FALSE) {
trigger_error('Ignore adresse non FR non ETR');
continue;
continue 2;
}
if ((string)$method->adresse->codeTypeAdresse == 'ADRPERSO') {
$values['user']['homePostalAddress'] = $adresse;
......
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