phpstan level 3, fixed deprecations, code cleanup (#811)
This commit is contained in:
@@ -22,7 +22,7 @@ use Pagerfanta\Pagerfanta;
|
||||
class ActivityRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* @param $id
|
||||
* @param int $id
|
||||
* @return null|Activity
|
||||
*/
|
||||
public function getById($id)
|
||||
|
||||
@@ -23,7 +23,7 @@ use Pagerfanta\Pagerfanta;
|
||||
class CustomerRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* @param $id
|
||||
* @param int $id
|
||||
* @return null|Customer
|
||||
*/
|
||||
public function getById($id)
|
||||
|
||||
@@ -26,7 +26,7 @@ use Pagerfanta\Pagerfanta;
|
||||
class ProjectRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* @param $id
|
||||
* @param int $id
|
||||
* @return null|Project
|
||||
*/
|
||||
public function getById($id)
|
||||
|
||||
@@ -140,7 +140,7 @@ class BaseQuery
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $resultType
|
||||
* @param string $resultType
|
||||
* @return $this
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
||||
@@ -58,7 +58,7 @@ class TimesheetQuery extends ActivityQuery
|
||||
/**
|
||||
* @var iterable
|
||||
*/
|
||||
protected $tags;
|
||||
protected $tags = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ class TimesheetRepository extends AbstractRepository
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $select
|
||||
* @param string $select
|
||||
* @param User $user
|
||||
* @return int
|
||||
* @throws \Doctrine\ORM\NonUniqueResultException
|
||||
@@ -290,7 +290,7 @@ class TimesheetRepository extends AbstractRepository
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param int $limit
|
||||
* @param int $hardLimit
|
||||
* @return int
|
||||
* @throws RepositoryException
|
||||
* @throws \Doctrine\ORM\ORMException
|
||||
|
||||
@@ -16,7 +16,7 @@ use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
|
||||
class UserRepository extends AbstractRepository implements UserLoaderInterface
|
||||
{
|
||||
/**
|
||||
* @param $id
|
||||
* @param int $id
|
||||
* @return null|User
|
||||
*/
|
||||
public function getById($id)
|
||||
|
||||
Reference in New Issue
Block a user