Skip to content
Code-Schnipsel Gruppen Projekte

fix: allow null user type in setuser methods and improve type hinting

Zusammengeführt Henning Leutz schlägt vor, next-3.x in main zu mergen.
2 Dateien
+ 13
13
Änderungen vergleichen
  • Nebeneinander
  • In der Reihe
Dateien
2
@@ -499,9 +499,9 @@ public function getUser(): ?QUI\Interfaces\Users\User
/**
* Set the user to the product, this user will be used for the calculation
*
* @param QUI\Interfaces\Users\User $User
* @param null|QUI\Interfaces\Users\User $User
*/
public function setUser(QUI\Interfaces\Users\User $User): void
public function setUser(null | QUI\Interfaces\Users\User $User): void
{
$this->calculated = false;
$this->User = $User;