mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +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
|
@ -32,6 +32,10 @@ use App\Entity\UserSystem\User;
|
|||
use DateTime;
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* @template TEntityClass of AbstractLogEntry
|
||||
* @extends DBElementRepository<TEntityClass>
|
||||
*/
|
||||
class LogEntryRepository extends DBElementRepository
|
||||
{
|
||||
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array
|
||||
|
@ -60,7 +64,8 @@ class LogEntryRepository extends DBElementRepository
|
|||
*/
|
||||
public function getElementHistory(AbstractDBElement $element, string $order = 'DESC', ?int $limit = null, ?int $offset = null): array
|
||||
{
|
||||
return $this->findBy(['element' => $element], ['timestamp' => $order], $limit, $offset);
|
||||
//@phpstan-ignore-next-line Target is parsed dynamically in findBy
|
||||
return $this->findBy(['target' => $element], ['timestamp' => $order], $limit, $offset);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue