mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Fixed type hints
This commit is contained in:
parent
a3bbd06fe3
commit
070055a8b9
@ -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…
Reference in New Issue
Block a user