phpstan level 3, fixed deprecations, code cleanup (#811)

This commit is contained in:
Kevin Papst
2019-05-28 12:24:21 +02:00
committed by GitHub
parent d9dca96a32
commit 393abe9e62
69 changed files with 381 additions and 189 deletions

View File

@@ -22,7 +22,7 @@ use Pagerfanta\Pagerfanta;
class ActivityRepository extends AbstractRepository
{
/**
* @param $id
* @param int $id
* @return null|Activity
*/
public function getById($id)

View File

@@ -23,7 +23,7 @@ use Pagerfanta\Pagerfanta;
class CustomerRepository extends AbstractRepository
{
/**
* @param $id
* @param int $id
* @return null|Customer
*/
public function getById($id)

View File

@@ -26,7 +26,7 @@ use Pagerfanta\Pagerfanta;
class ProjectRepository extends AbstractRepository
{
/**
* @param $id
* @param int $id
* @return null|Project
*/
public function getById($id)

View File

@@ -140,7 +140,7 @@ class BaseQuery
}
/**
* @param $resultType
* @param string $resultType
* @return $this
* @throws \InvalidArgumentException
*/

View File

@@ -58,7 +58,7 @@ class TimesheetQuery extends ActivityQuery
/**
* @var iterable
*/
protected $tags;
protected $tags = [];
public function __construct()
{

View File

@@ -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

View File

@@ -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)