Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0f90d1

Browse files
committed
Fix régressions PHPStan et CS Fixer suite aux mises à jour
- CS Fixer 3.95 : auto-fix des règles multiline_promoted_properties, braces_position et single_line_empty_body sur 35 fichiers - PHPStan 2.1.51 : suppression des ?? null redondants sur propriétés non-nullables dans CompanyMemberInvitation - PHPStan 2.1.51 : suppression du guard event_id !== null redondant dans TicketType (exception déjà levée en amont si null)
1 parent cedd58c commit f0f90d1

36 files changed

Lines changed: 54 additions & 121 deletions

sources/Afup/Corporate/Page.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
final readonly class Page
1212
{
13-
public function __construct(
14-
private FeuilleRepository $feuilleRepository,
15-
) {}
13+
public function __construct(private FeuilleRepository $feuilleRepository,) {}
1614

1715
public function header($url = null, UserInterface $user = null): string
1816
{

sources/AppBundle/Association/Form/CompanyPublicProfile.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ class CompanyPublicProfile extends AbstractType
2727
public const DESCRIPTION_MAX_LENGTH = 2000;
2828
public const MEMBERSHIP_REASON_MAX_LENGTH = 150;
2929

30-
public function __construct(
31-
private readonly AntenneRepository $antennesRepository,
32-
) {}
30+
public function __construct(private readonly AntenneRepository $antennesRepository,) {}
3331

3432
public function buildForm(FormBuilderInterface $builder, array $options): void
3533
{

sources/AppBundle/Association/Form/NearestOfficeChoiceType.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
class NearestOfficeChoiceType extends AbstractType
1313
{
14-
public function __construct(
15-
private readonly AntenneRepository $antennesRepository,
16-
) {}
14+
public function __construct(private readonly AntenneRepository $antennesRepository,) {}
1715

1816
public function configureOptions(OptionsResolver $resolver): void
1917
{

sources/AppBundle/Association/Model/CompanyMemberInvitation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function getManager(): bool
7777

7878
public function setManager(bool $manager): self
7979
{
80-
$this->propertyChanged('manager', $this->manager ?? null, $manager);
80+
$this->propertyChanged('manager', $this->manager, $manager);
8181
$this->manager = $manager;
8282
return $this;
8383
}
@@ -107,7 +107,7 @@ public function getStatus(): int
107107
*/
108108
public function setStatus(int $status): self
109109
{
110-
$this->propertyChanged('status', $this->status ?? null, $status);
110+
$this->propertyChanged('status', $this->status, $status);
111111
$this->status = $status;
112112
return $this;
113113
}

sources/AppBundle/Command/UpdateCompanyMemberStateCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212

1313
class UpdateCompanyMemberStateCommand extends Command
1414
{
15-
public function __construct(
16-
private readonly CompanyMemberRepository $companyMemberRepository,
17-
) {
15+
public function __construct(private readonly CompanyMemberRepository $companyMemberRepository,)
16+
{
1817
parent::__construct();
1918
}
2019

sources/AppBundle/Controller/Admin/Accounting/Journal/AllocateAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
class AllocateAction extends AbstractController
1414
{
15-
public function __construct(
16-
private readonly TransactionRepository $transactionRepository,
17-
) {}
15+
public function __construct(private readonly TransactionRepository $transactionRepository,) {}
1816

1917
public function __invoke(Request $request, int $id): RedirectResponse
2018
{

sources/AppBundle/Controller/Admin/Accounting/Journal/UpdateInfoAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
class UpdateInfoAction extends AbstractController
1616
{
17-
public function __construct(
18-
private readonly TransactionRepository $transactionRepository,
19-
) {}
17+
public function __construct(private readonly TransactionRepository $transactionRepository,) {}
2018

2119
public function __invoke(
2220
Request $request,

sources/AppBundle/Controller/Admin/Accounting/MembershipFee/DownloadMembershipFeeInvoiceAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111

1212
class DownloadMembershipFeeInvoiceAction extends AbstractController
1313
{
14-
public function __construct(
15-
private readonly Cotisations $cotisations,
16-
) {}
14+
public function __construct(private readonly Cotisations $cotisations,) {}
1715

1816
public function __invoke(MemberType $memberType, int $memberId, int $membershipFeeId): Response
1917
{

sources/AppBundle/Controller/Admin/Audit/IndexAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
final class IndexAction extends AbstractController
1212
{
13-
public function __construct(
14-
private readonly AuditLogRepository $auditLogRepository,
15-
) {}
13+
public function __construct(private readonly AuditLogRepository $auditLogRepository,) {}
1614

1715
public function __invoke(int $page): Response
1816
{

sources/AppBundle/Controller/Admin/Event/ExtendSpecialPriceAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
class ExtendSpecialPriceAction extends AbstractController
1414
{
15-
public function __construct(
16-
private readonly TicketSpecialPriceRepository $ticketSpecialPriceRepository,
17-
) {}
15+
public function __construct(private readonly TicketSpecialPriceRepository $ticketSpecialPriceRepository,) {}
1816

1917
public function __invoke(int $id, AdminEventSelection $eventSelection): Response
2018
{

0 commit comments

Comments
 (0)