diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index f09e20b8..08a26560 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -138,7 +138,6 @@ class PartController extends AbstractController * @param Request $request * @param EntityManagerInterface $em * @param TranslatorInterface $translator - * @param AttachmentManager $attachmentHelper * @param AttachmentSubmitHandler $attachmentSubmitHandler * @return Response */ diff --git a/src/DataTables/Column/IconLinkColumn.php b/src/DataTables/Column/IconLinkColumn.php index 66a19035..96171052 100644 --- a/src/DataTables/Column/IconLinkColumn.php +++ b/src/DataTables/Column/IconLinkColumn.php @@ -47,6 +47,8 @@ class IconLinkColumn extends AbstractColumn $resolver->setAllowedTypes('title', ['null', 'string', 'callable']); $resolver->setAllowedTypes('icon', ['null', 'string', 'callable']); $resolver->setAllowedTypes('href', ['null', 'string', 'callable']); + + return $this; } public function render($value, $context) diff --git a/src/Services/EntityURLGenerator.php b/src/Services/EntityURLGenerator.php index f42c68b4..2e3d26c2 100644 --- a/src/Services/EntityURLGenerator.php +++ b/src/Services/EntityURLGenerator.php @@ -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', [ diff --git a/src/Services/LogSystem/TimeTravel.php b/src/Services/LogSystem/TimeTravel.php index b8edb7ba..aada08b9 100644 --- a/src/Services/LogSystem/TimeTravel.php +++ b/src/Services/LogSystem/TimeTravel.php @@ -22,6 +22,7 @@ namespace App\Services\LogSystem; +use App\Entity\Attachments\AttachmentType; use App\Entity\Base\AbstractDBElement; use App\Entity\Base\AbstractStructuralDBElement; use App\Entity\Contracts\TimeStampableInterface; @@ -32,7 +33,6 @@ use App\Entity\LogSystem\ElementEditedLogEntry; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Mapping\ClassMetadata; -use Proxies\__CG__\App\Entity\Attachments\AttachmentType; class TimeTravel {