mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-23 21:27:44 +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)
|
||||
{
|
||||
$this->originalUrl = (string) $originalUrl;
|
||||
$this->originalUrl = $originalUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ class UrlShortener implements UrlShortenerInterface
|
|||
|
||||
// First, create the short URL with an empty short code
|
||||
$shortUrl = new ShortUrl();
|
||||
$shortUrl->setOriginalUrl($url);
|
||||
$shortUrl->setOriginalUrl((string) $url);
|
||||
$this->em->persist($shortUrl);
|
||||
$this->em->flush();
|
||||
|
||||
|
|
Loading…
Reference in a new issue