Skip to content

Upgrade PHP 8.5#2258

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

Upgrade PHP 8.5#2258
stakovicz wants to merge 11 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.

@@ -43,8 +43,6 @@ public function clearEmails(): void
if (curl_errno($ch) !== 0) {
throw new \RuntimeException('Error : ' . curl_error($ch));
}

curl_close($ch);
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.

C'est plus nécessaire du tout ?

throw new ExpectationException(
sprintf('The content "%s" was not found in the content "%s"', $expectedContent, $pageContent),
$this->minkContext->getSession()->getDriver(),
);
}
}

#[Then('print the page :page of the PDF')]
public function thePrint(string $page): void
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.

Elle ne semble pas utilisée cette nouvelle phrase.

@@ -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 ?

@@ -45,8 +45,8 @@ Feature: Administration - Évènements - Factures d'évènement
When I parse the pdf downloaded content
Then The page "1" of the PDF should contain "Objet : Facture n°REF-TEST-003"
Then The page "1" of the PDF should contain "3 avenue de l'enterprise"
Then The page "1" of the PDF should contain "Type Personne inscrite Prix HT TVA Prix TTC"
Then The page "1" of the PDF should contain "2 Jours James Tiberius Kirk 227,27 € 10% 250,00 €"
Then The page "1" of the PDF should contain "Type Personne inscrite Prix HTT"
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.

Suggested change
Then The page "1" of the PDF should contain "Type Personne inscrite Prix HTT"
Then The page "1" of the PDF should contain "Type Personne inscrite Prix HT"

Then The page "1" of the PDF should contain "Comme convenu, nous vous prions de trouver votre facture"
Then The page "1" of the PDF should contain "Type Description Quantite TVA Prix HT Total TTC"
Then The page "1" of the PDF should contain "forum_php_2025 Forum PHP 2025 - Sponsoring"
Then The page "1" of the PDF should contain "Bronze 1.00 20.00% 1 000,00 € 1 200,00 €"
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.

Comment ça se fait qu'on ne check plus ce genre de chose ?

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