mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -45,6 +45,10 @@ use App\Entity\Base\AbstractDBElement;
|
|||
use Doctrine\ORM\EntityRepository;
|
||||
use ReflectionClass;
|
||||
|
||||
/**
|
||||
* @template TEntityClass of AbstractDBElement
|
||||
* @extends EntityRepository<TEntityClass>
|
||||
*/
|
||||
class DBElementRepository extends EntityRepository
|
||||
{
|
||||
/**
|
||||
|
@ -53,7 +57,7 @@ class DBElementRepository extends EntityRepository
|
|||
*
|
||||
* @param AbstractDBElement $element The element whose ID should be changed
|
||||
* @phpstan-param TEntityClass $element
|
||||
* @param int $new_id The new ID
|
||||
* @param int $new_id The new ID
|
||||
*/
|
||||
public function changeID(AbstractDBElement $element, int $new_id): void
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue