1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-27 17:28:39 +00:00

Fix some self deprecation notices

This commit is contained in:
Yassine Guedidi 2025-01-18 23:56:06 +01:00
parent 5a8b581adf
commit 98ed784af3
47 changed files with 57 additions and 49 deletions

View file

@ -16,7 +16,7 @@ class ClientRepository extends ServiceEntityRepository
parent::__construct($registry, Client::class);
}
public function findOneBy(array $criteria, ?array $orderBy = null)
public function findOneBy(array $criteria, ?array $orderBy = null): ?object
{
if (!empty($criteria['id'])) {
// cast client id to be an integer to avoid postgres error: