[Chore] Update PHP, Symfony, Node.js, and Next.js dependencies - #253
Open
PhilDaiguille wants to merge 5 commits into
Open
PhilDaiguille wants to merge 5 commits into
PhilDaiguille wants to merge 5 commits into
Conversation
Owner
|
Je sais qu'il y a aussi les CIs à mettre à jour si t'a le courage ;) |
Contributor
Author
toujours |
Owner
|
Les tests ne passent plus :( Faut maj les implèmentaitons de |
- MockHub: implement getProtocolVersion() and getCookieName(), new on HubInterface (the missing methods made every kernel boot fatal) - Mercure token factory now takes Grant objects instead of topic strings - Kernel: configureContainer() from the trait only takes $container - Regenerate replay fixtures: VarExporter dropped Internal\Hydrator in favour of deepclone_from_array() - HackedZoneCardTest: assertEqualsCanonicalizing now compares keys too - Regenerate the mago analyzer baseline Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxQc1fqQJANRX9nHq2LMfR
The comment API needs issues:write; the step also no longer fails the job when the token is read-only anyway. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Mise à jour des dépendances (PHP 8.5, Symfony 8.1, Node/Next) + les adaptations de code que ces montées de version imposent.
Ce qui cassait
HubInterface(Mercure)Deux méthodes ont été ajoutées à l'interface :
getProtocolVersion()etgetCookieName().App\Tests\Resources\MockHubne les implémentait pas, donc la classe était refusée au chargement — et comme leKernella référence pour l'envtest, tout boot du kernel devenait fatal (make setup-tests,make tests-replay,bin/console).TokenFactoryInterface::create()La signature attend maintenant des objets
Grantet non plus une liste de topics :Appliqué aux 6 appels :
GameProvider,GameDebugProvider,JoinRoomHandler,CreateRoomHandler,CreateTradeHandler,SubscribeTradeHandler.Kernel::configureContainer()Le
configureContainer()du trait Symfony ne prend plus qu'un seul argument. L'appel àdefaultConfigureContainer()a été réduit à$container($loaderet$builderrestent utilisés dans le corps de la méthode).Fixtures de replay
Symfony\Component\VarExporter\Internal\Hydratora disparu en 8.1, remplacé pardeepclone_from_array(). Les 10 fixtures générées detests/GameReplay/resources/n'étaient plus chargeables du tout.make regenerate-tests-replay;11-bombsn'est pas réimportable (cartedummy_characterabsente du registry, même cas que1-basicqui lui est écrit à la main) : chargée une fois avec l'ancienne classe restaurée temporairement, puis réexportée au format actuel.Le contenu des états de jeu est inchangé, seule la sérialisation l'est.
HackedZoneCardTestPHPUnit 12 fait comparer les clés à
assertEqualsCanonicalizing.array_filterconservait les index 1, 3, 5… d'où l'échec ; enveloppé dansarray_values(). Aucun changement de logique.Baseline mago
La montée de version a rendu 51 entrées obsolètes et en a fait apparaître d'autres : baseline régénérée. Les 119 issues masquées l'étaient déjà avant, elles sont juste réparties différemment — le vrai nettoyage n'a pas sa place dans une PR de deps.
Vérifications
make testsmake tests-replaymake stanmake format/make lintDataMinerCard)🤖 Generated with Claude Code