mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Started to increase the phpstan level
This commit is contained in:
parent
71cd4057a7
commit
fc3290271c
29 changed files with 119 additions and 55 deletions
|
@ -52,6 +52,7 @@ class DBElementRepository extends EntityRepository
|
|||
* You should only use it to undelete former existing elements, everything else is most likely a bad idea!
|
||||
*
|
||||
* @param AbstractDBElement $element The element whose ID should be changed
|
||||
* @phpstan-param TEntityClass $element
|
||||
* @param int $new_id The new ID
|
||||
*/
|
||||
public function changeID(AbstractDBElement $element, int $new_id): void
|
||||
|
@ -73,6 +74,7 @@ class DBElementRepository extends EntityRepository
|
|||
* Find all elements that match a list of IDs.
|
||||
*
|
||||
* @return AbstractDBElement[]
|
||||
* @phpstan-return list<TEntityClass>
|
||||
*/
|
||||
public function getElementsFromIDArray(array $ids): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue