type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-07 12:11:33 +02:00
parent d9e2acbf92
commit 78c5ec8a0c
20 changed files with 178 additions and 90 deletions

View File

@@ -41,14 +41,14 @@ interface Repository
/**
* Get a new entity.
*
* @phpstan-return TEntity
* @return TEntity
*/
public function getNew(): Entity;
/**
* Fetch an entity by ID.
*
* @phpstan-return ?TEntity
* @return ?TEntity
*/
public function getById(string $id): ?Entity;