Skip to content

Conversation

@vgreb
Copy link
Collaborator

@vgreb vgreb commented Dec 21, 2025

No description provided.

@vgreb vgreb self-assigned this Dec 21, 2025
@vgreb vgreb changed the title Refonte - Trésorerie > Comptes banques > Télécharger les justificatificatifs #2046 Refonte - Trésorerie > Comptes banques > Télécharger les justificatifs #2046 Dec 21, 2025
@vgreb vgreb force-pushed the refacto/accounting-bank-statements-download branch from 8bf0962 to 19a55c2 Compare December 21, 2025 19:55
@vgreb vgreb force-pushed the refacto/accounting-bank-statements-download branch from 19a55c2 to 86ada9b Compare December 21, 2025 19:58

public function __invoke(Request $request): Response
{
$periodId = $request->query->has('periodId') && $request->query->get('periodId') ? (int) $request->query->get('periodId') : null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$periodId = $request->query->has('periodId') && $request->query->get('periodId') ? (int) $request->query->get('periodId') : null;
$periodId = $request->query->getInt('periodId', null);

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ce n'est pas possible, getInt() doit forcément returner un int. Je peux au mieux utiliser getInt() et utiliser 0 en valeur par défaut mais ça va impliquer de modifier la fonction getCurrentPeriod pour gérer null et 0.

@vgreb vgreb force-pushed the refacto/accounting-bank-statements-download branch from 86ada9b to edbf037 Compare December 30, 2025 17:58
@vgreb vgreb force-pushed the refacto/accounting-bank-statements-download branch from edbf037 to d3a8f51 Compare December 30, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants