mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-17 15:59:56 +03:00
Fixed type hints
This commit is contained in:
parent
a3bbd06fe3
commit
070055a8b9
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ class ShortUrl extends AbstractEntity implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public function setOriginalUrl(string $originalUrl)
|
public function setOriginalUrl(string $originalUrl)
|
||||||
{
|
{
|
||||||
$this->originalUrl = (string) $originalUrl;
|
$this->originalUrl = $originalUrl;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ class UrlShortener implements UrlShortenerInterface
|
||||||
|
|
||||||
// First, create the short URL with an empty short code
|
// First, create the short URL with an empty short code
|
||||||
$shortUrl = new ShortUrl();
|
$shortUrl = new ShortUrl();
|
||||||
$shortUrl->setOriginalUrl($url);
|
$shortUrl->setOriginalUrl((string) $url);
|
||||||
$this->em->persist($shortUrl);
|
$this->em->persist($shortUrl);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue