Fixed deprecations

This commit is contained in:
Jan Böhmer 2023-12-05 21:55:20 +01:00
parent 5faeb5dd56
commit 8b8079a6f1
3 changed files with 4 additions and 4 deletions

View file

@ -48,7 +48,7 @@ class LoadFixturesCommand extends Command
parent::__construct();
}
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$ui = new SymfonyStyle($input, $output);

View file

@ -50,7 +50,7 @@ class TinyIntType extends Type
*
* @template T
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
public function convertToPHPValue($value, AbstractPlatform $platform): ?int
{
return $value === null ? null : (int) $value;
}

View file

@ -127,7 +127,7 @@ class TreeViewGenerator
}
if ($href_type !== '' && null !== $item->getId()) {
$entity = $this->em->getPartialReference($class, $item->getId());
$entity = $this->em->find($class, $item->getId());
$item->setHref($this->urlGenerator->getURL($entity, $href_type));
}