mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Fixed PHPStan errors.
This commit is contained in:
parent
f604022e49
commit
15d25cf2b2
4 changed files with 5 additions and 4 deletions
|
@ -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', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue