mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Correct return type and typo in GetUrl()
This commit is contained in:
parent
7253ad41ca
commit
432723eafe
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ class Collection{
|
|||
public ?CollectionType $Type = null;
|
||||
protected ?string $_Url = null;
|
||||
|
||||
protected function GetUrl(): ?string{
|
||||
protected function GetUrl(): string{
|
||||
if($this->_Url === null){
|
||||
$this->Url = '/collections/' . $this->UrlName;
|
||||
$this->_Url = '/collections/' . $this->UrlName;
|
||||
}
|
||||
|
||||
return $this->_Url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue