Repository navigation
Symfony 8 : corrige les dernières dépréciations - #2533
Merged
Merged
Conversation
- DateTimeWithTimeZoneSerializer::unserialize() : type de retour natif ?\DateTime
- ticket.html.twig : filtre Twig spaceless remplacé par les modificateurs {%- -%}
- ifsnop/mysqldump-php 2.13 : plus de PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, déprécié en PHP 8.5
Refs afup#2441
BySplashGm
requested review from
Mopolo,
agallou and
stakovicz
as code owners
November 30, 2026 14:16
stakovicz
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Étape 6 de #2441, seconde partie : nettoyage après la bascule en 8.1.
Contexte
Après #2531, plus aucune dépréciation Symfony n'est émise. Il en restait trois hors Symfony, simples à corriger. Les règles Rector en attente sont dans une PR à part, #2532.
J'ai aussi cherché des contournements devenus inutiles : commentaires « Symfony 8 » ou « 7.4 », conditions sur
Kernel::VERSION, config de compatibilité. Je n'en ai trouvé aucun. Les deux patches Behat restent :friends-of-behat/mink-extension, tant que Fix escape patterns in step definitions, fixes problems with translated feature files FriendsOfBehat/MinkExtension#65 n'est pas publiée ;behat/mink-browserkit-driver, tant que le driver n'est pas corrigé en amont (voir Symfony 8 : bascule le cœur en 8.1 #2531).Modifications
AppBundle\Ting\DateTimeWithTimeZoneSerializer::unserialize(): ajout du type de retour natif?\DateTime.CCMBenchmark\Ting\Serializer\DateTime::unserialize()ne renvoie que\DateTimeounull, etDebugClassLoadersignalait qu'il manquait un type de retour natif.templates/event/ticket/ticket.html.twig: le filtrespaceless, déprécié dans Twig 3.12, est retiré. Les modificateurs{%-/-%}le remplacent et le HTML produit reste le même.ifsnop/mysqldump-phppasse de^2.12à^2.13. La 2.12 utilisaitPDO::MYSQL_ATTR_USE_BUFFERED_QUERY, déprécié en PHP 8.5. Seul ce paquet change dans le lock. Il ne sert qu'àtests/support/DatabaseManager.php.Tests
test.deprecations_grouped.log) : aucune.