Improved repository tests

This commit is contained in:
Alejandro Celaya
2018-12-02 19:13:49 +01:00
parent d4924897b2
commit a7a5667301
7 changed files with 34 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ class TagRepository extends EntityRepository implements TagRepositoryInterface
* @param array $names
* @return int The number of affected entries
*/
public function deleteByName(array $names)
public function deleteByName(array $names): int
{
if (empty($names)) {
return 0;

View File

@@ -13,5 +13,5 @@ interface TagRepositoryInterface extends ObjectRepository
* @param array $names
* @return int The number of affected entries
*/
public function deleteByName(array $names);
public function deleteByName(array $names): int;
}