mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix some phpstan errors
This commit is contained in:
parent
096e2f6e40
commit
d62ba56cfe
@ -3916,21 +3916,11 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilter.php
|
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilter.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Property Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\ReferrerFilter\\:\\:\\$userRender is never read, only written\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilter.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Property Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\SocialActionFilter\\:\\:\\$translatableStringHelper is never read, only written\\.$#"
|
message: "#^Property Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\SocialActionFilter\\:\\:\\$translatableStringHelper is never read, only written\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php
|
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Method Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\UserJobFilter\\:\\:getUserJob\\(\\) is unused\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/UserJobFilter.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Method Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\UserScopeFilter\\:\\:getUserMainScope\\(\\) is unused\\.$#"
|
message: "#^Method Chill\\\\PersonBundle\\\\Export\\\\Filter\\\\AccompanyingCourseFilters\\\\UserScopeFilter\\:\\:getUserMainScope\\(\\) is unused\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
@ -31,13 +31,9 @@ class ReferrerFilter implements FilterInterface
|
|||||||
|
|
||||||
private RollingDateConverterInterface $rollingDateConverter;
|
private RollingDateConverterInterface $rollingDateConverter;
|
||||||
|
|
||||||
private UserRender $userRender;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
UserRender $userRender,
|
|
||||||
RollingDateConverterInterface $rollingDateConverter
|
RollingDateConverterInterface $rollingDateConverter
|
||||||
) {
|
) {
|
||||||
$this->userRender = $userRender;
|
|
||||||
$this->rollingDateConverter = $rollingDateConverter;
|
$this->rollingDateConverter = $rollingDateConverter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,19 +37,15 @@ class UserJobFilter implements FilterInterface
|
|||||||
|
|
||||||
private RollingDateConverterInterface $rollingDateConverter;
|
private RollingDateConverterInterface $rollingDateConverter;
|
||||||
|
|
||||||
private Security $security;
|
|
||||||
|
|
||||||
private TranslatableStringHelper $translatableStringHelper;
|
private TranslatableStringHelper $translatableStringHelper;
|
||||||
|
|
||||||
private UserJobRepositoryInterface $userJobRepository;
|
private UserJobRepositoryInterface $userJobRepository;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Security $security,
|
|
||||||
TranslatableStringHelper $translatableStringHelper,
|
TranslatableStringHelper $translatableStringHelper,
|
||||||
UserJobRepositoryInterface $userJobRepository,
|
UserJobRepositoryInterface $userJobRepository,
|
||||||
RollingDateConverterInterface $rollingDateConverter
|
RollingDateConverterInterface $rollingDateConverter
|
||||||
) {
|
) {
|
||||||
$this->security = $security;
|
|
||||||
$this->translatableStringHelper = $translatableStringHelper;
|
$this->translatableStringHelper = $translatableStringHelper;
|
||||||
$this->userJobRepository = $userJobRepository;
|
$this->userJobRepository = $userJobRepository;
|
||||||
$this->rollingDateConverter = $rollingDateConverter;
|
$this->rollingDateConverter = $rollingDateConverter;
|
||||||
|
@ -22,13 +22,6 @@ use function in_array;
|
|||||||
|
|
||||||
class ReferrerFilter implements FilterInterface
|
class ReferrerFilter implements FilterInterface
|
||||||
{
|
{
|
||||||
private UserRender $userRender;
|
|
||||||
|
|
||||||
public function __construct(UserRender $userRender)
|
|
||||||
{
|
|
||||||
$this->userRender = $userRender;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addRole(): ?string
|
public function addRole(): ?string
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user