Fixed PHPStan errors.

This commit is contained in:
Jan Böhmer 2020-02-29 22:57:25 +01:00
parent f604022e49
commit 15d25cf2b2
4 changed files with 5 additions and 4 deletions

View file

@ -126,11 +126,11 @@ class EntityURLGenerator
/**
* Gets the URL to view the given element at a given timestamp
* @param $entity
* @param AbstractDBElement $entity
* @param \DateTime $dateTime
* @return string
*/
public function timeTravelURL($entity, \DateTime $dateTime): string
public function timeTravelURL(AbstractDBElement $entity, \DateTime $dateTime): string
{
if ($entity instanceof Part) {
return $this->urlGenerator->generate('part_info', [