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

@@ -31,11 +31,18 @@ use Symfony\Component\Routing\Annotation\Route;
class ActivityController extends AbstractController
{
/**
* @return \App\Repository\ActivityRepository
* @var ActivityRepository
*/
protected function getRepository()
private $repository;
public function __construct(ActivityRepository $repository)
{
return $this->getDoctrine()->getRepository(Activity::class);
$this->repository = $repository;
}
protected function getRepository(): ActivityRepository
{
return $this->repository;
}
/**