mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed deprecations
This commit is contained in:
parent
5faeb5dd56
commit
8b8079a6f1
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue