Skip to content

Upgrade PHP 8.5#2258

Open
stakovicz wants to merge 14 commits into
afup:masterfrom
stakovicz:feat-upgrade-php-8.5
Open

Upgrade PHP 8.5#2258
stakovicz wants to merge 14 commits into
afup:masterfrom
stakovicz:feat-upgrade-php-8.5

Conversation

@stakovicz
Copy link
Copy Markdown
Contributor

On met à jour PHP 8.5.
J'ai essayé de faire des commits atomic, mais c'est pas évident.

J'ai passé un coup de Rector et j'ai du adapter quelques tests à cause de la montée de version de smalot/pdfparser

@stakovicz stakovicz self-assigned this May 27, 2026
@stakovicz stakovicz requested review from Mopolo and agallou as code owners May 27, 2026 18:44
Copy link
Copy Markdown
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

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

Un peu long à lire mais pas si compliqué en vrai. La majorité des modifs sont simples.

Comment thread tests/behat/bootstrap/EmailContext.php
Comment thread tests/behat/bootstrap/PdfContext.php
Comment thread tests/behat/bootstrap/PdfContext.php Outdated
@@ -42,6 +42,7 @@ public function iParseThePdfContent(): void
public function thePageOfThePdfShouldContain(string $page, string $expectedContent): void
{
$pageContent = $this->pdfPages[$page] ?? null;
$pageContent = str_replace("\t", " ", $pageContent);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

À cause de la maj de la lib pdf je suppose ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

En fait, je pensai qu'en faisant comme ça je n'aurai pas eu à intervenir sur les scenarii mais j'ai du quand même les corriger.

Est-ce que j'enlève ce code et je les corriges les tabulations ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Les tabulations c'est qu'il y en a dans les fichiers pdf ?

S'il faut quand même modifier les scénarios pourquoi corriger oui.

Faudra juste qu'on check bien que les factures sont correctement générées.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

En fait, smalot/pdfparser nous permet de parser les PDF pour les tests fonctionnels.
Donc la tabulation n'a pas d'importance, mais je vais faire ça propre.

On n'a pas touché à la génération des pdf.

Comment thread tests/behat/features/Admin/Events/FacturesEvennement.feature Outdated
Comment thread tests/behat/features/Admin/Tresorerie/DevisFactures.feature
@stakovicz stakovicz force-pushed the feat-upgrade-php-8.5 branch from b0adb0d to 84be794 Compare May 31, 2026 18:47
@stakovicz stakovicz force-pushed the feat-upgrade-php-8.5 branch from 9e2a4f5 to 7e52eb9 Compare June 1, 2026 19:56
Comment thread app/config/reference.php
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Il faut aussi l'enlever du .gitignore du coup : https://github.com/afup/web/blob/master/.gitignore#L58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants