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

Merge branch 'next-3.x' into 'main'

fix:  must be of type array, null given

See merge request !139
Übergeordnete 87384e26 bbcb0e4a
No related branches found
Tags 1.12.1
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!139fix: must be of type array, null given
Pipeline #11177 mit Warnungen bestanden mit Phase
in 50 Sekunden
......@@ -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