DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -31,29 +31,16 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface
{
use \Symfony\Component\DependencyInjection\ContainerAwareTrait;
/**
* @var EntityManagerInterface
*/
private $em;
/**
* @var AuthorizationHelper
*/
private $helper;
/**
* @var \Chill\MainBundle\Entity\User
*/
private $user;
public function __construct(
EntityManagerInterface $em,
AuthorizationHelper $helper,
private EntityManagerInterface $em,
private AuthorizationHelper $helper,
TokenStorageInterface $tokenStorage
) {
$this->em = $em;
$this->helper = $helper;
if (!$tokenStorage->getToken()->getUser() instanceof \Chill\MainBundle\Entity\User) {
throw new RuntimeException('an user must be associated with token');
}