mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 08:43:13 +08:00
Improved repository tests
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user