Unverified Commit b0b73671 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(sinaps) Add missing casting to string

issue #5941
parent 678e867f
...@@ -242,7 +242,7 @@ class sinapsRequest ...@@ -242,7 +242,7 @@ class sinapsRequest
if (isset($personne->referenceCroisee->identifiantsExternes)) { if (isset($personne->referenceCroisee->identifiantsExternes)) {
foreach ($personne->referenceCroisee->identifiantsExternes as $ref) { foreach ($personne->referenceCroisee->identifiantsExternes as $ref) {
if ($ref->identifiantApplication == $identifiantApplication) { if ($ref->identifiantApplication == $identifiantApplication) {
$uuid = $ref->identifiantExterne; $uuid = (string)$ref->identifiantExterne;
} elseif (in_array($ref->identifiantApplication, $identifiantApplicationSync)) { } elseif (in_array($ref->identifiantApplication, $identifiantApplicationSync)) {
$values['supannAccount']['supannRefId'][] = '{'.$ref->identifiantApplication.'}'.$ref->identifiantExterne; $values['supannAccount']['supannRefId'][] = '{'.$ref->identifiantApplication.'}'.$ref->identifiantExterne;
} }
...@@ -272,12 +272,12 @@ class sinapsRequest ...@@ -272,12 +272,12 @@ class sinapsRequest
foreach ($personne->rattachements->rattachement as $rattachement) { foreach ($personne->rattachements->rattachement as $rattachement) {
if (isset($rattachement->roles->role)) { if (isset($rattachement->roles->role)) {
foreach ($rattachement->roles->role as $role) { foreach ($rattachement->roles->role as $role) {
if (isset($userRoleExists[$role->typeRole])) { if (isset($userRoleExists[(string)$role->typeRole])) {
if ($userRoleExists[$role->typeRole] === TRUE) { if ($userRoleExists[(string)$role->typeRole] === TRUE) {
$deletion = FALSE; $deletion = FALSE;
break 2; break 2;
} }
if (in_array_ics($role->externe->typeExterne, $userRoleExists[$role->typeRole])) { if (in_array_ics((string)$role->externe->typeExterne, $userRoleExists[(string)$role->typeRole])) {
$deletion = FALSE; $deletion = FALSE;
break 2; break 2;
} }
...@@ -334,7 +334,7 @@ class sinapsRequest ...@@ -334,7 +334,7 @@ class sinapsRequest
trigger_error('Ignore adresse non FR non ETR'); trigger_error('Ignore adresse non FR non ETR');
continue; continue;
} }
if ($method->adresse->codeTypeAdresse == 'ADRPERSO') { if ((string)$method->adresse->codeTypeAdresse == 'ADRPERSO') {
$values['user']['homePostalAddress'] = $adresse; $values['user']['homePostalAddress'] = $adresse;
} else { } else {
$values['user']['postalAddress'] = $adresse; $values['user']['postalAddress'] = $adresse;
......
Supports Markdown
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