Started to increase the phpstan level

This commit is contained in:
Jan Böhmer 2023-06-13 10:36:34 +02:00
parent 71cd4057a7
commit fc3290271c
29 changed files with 119 additions and 55 deletions

View file

@ -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
{