Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit bbcb0e4a erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: must be of type array, null given

Übergeordneter 8547a26a
No related branches found
No related tags found
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!139fix: must be of type array, null given
Pipeline #11175 bestanden mit Phase
in 2 Minuten und 1 Sekunde
......@@ -23,15 +23,19 @@ class Address extends QUI\Users\Address
/**
* Address constructor.
*
* @param array $data
* @param array|null $data
* @param QUIUserInterface|null $User
*/
public function __construct(array $data = [], QUI\Interfaces\Users\User $User = null)
public function __construct(?array $data = [], QUI\Interfaces\Users\User $User = null)
{
if ($User) {
$this->User = $User;
}
if (!$data) {
$data = [];
}
$this->setAttributes($data);
if (isset($data['id'])) {
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren