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

refactor: update method parameter type hints in product model

This commit refines the type hints in the Product model. Specifically, the
getUrlRewrittenWithHost() method's $Project parameter type is defined more explicitly, indicating
that it can accept either a type of QUI\\Projects\\Project or null.

Related: quiqqer/package-feed#15
Übergeordneter 50a11f6a
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!103refactor: update method parameter type hints in product model,!79Update 'next-3.x' with latest changes from 'main'
Pipeline-Nr. 14457 mit Warnungen bestanden
......@@ -717,11 +717,11 @@ public function getUrl(QUI\Projects\Project $Project = null): string
}
/**
* @param null $Project
* @param QUI\Projects\Project|null $Project
* @return string
* @throws QUI\Exception
*/
public function getUrlRewrittenWithHost($Project = null): string
public function getUrlRewrittenWithHost(?QUI\Projects\Project $Project = null): string
{
if (!$Project) {
$Project = QUI::getRewrite()->getProject();
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren