fix upload bug in ModRepository.php
All checks were successful
Build & Deploy / Validation, build et push (push) Successful in 14m0s
All checks were successful
Build & Deploy / Validation, build et push (push) Successful in 14m0s
This commit is contained in:
parent
7fb5a901ad
commit
c66e0131b3
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ namespace App\Repository;
|
||||||
use App\Entity\Mod;
|
use App\Entity\Mod;
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
use Doctrine\Persistence\ManagerRegistry;
|
||||||
use function PHPUnit\Framework\isNull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @extends ServiceEntityRepository<Mod>
|
* @extends ServiceEntityRepository<Mod>
|
||||||
|
|
@ -24,7 +23,7 @@ class ModRepository extends ServiceEntityRepository
|
||||||
public function findAvailableDependances(?Mod $mod): array
|
public function findAvailableDependances(?Mod $mod): array
|
||||||
{
|
{
|
||||||
$excludedIds = [];
|
$excludedIds = [];
|
||||||
if (!isnull($mod)) {
|
if ($mod !== null) {
|
||||||
$excludedIds = $this->collectDependencyIds($mod, []);
|
$excludedIds = $this->collectDependencyIds($mod, []);
|
||||||
$excludedIds[] = $mod->getId();
|
$excludedIds[] = $mod->getId();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue