CI: doctrine-orm/odm PHPUnit red on PHP 8.5 lowest (NameConverterAwareTrait not found)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia in src/Doctrine/Orm eseguendo composer update --prefer-lowest --prefer-source e analizza i vincoli delle dipendenze del bridge; confronta il pattern dell’alias dev di #7237 e controlla il bridge Doctrine ODM corrispondente. Il lavoro è completato quando entrambi i job PHPUnit per PHP 8.5 con le versioni più basse passano senza l’errore NameConverterAwareTrait; l’issue indica che una PR di follow-up è già pronta, quindi controllala prima di duplicare il lavoro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The PHPUnit api-platform/doctrine-orm (PHP 8.5 lowest) and PHPUnit api-platform/doctrine-odm (PHP 8.5 lowest) jobs are red on main. Because they run on every PR, any change touching those bridges (or their dependencies) inherits a red pipeline that has nothing to do with the change itself.
Root cause
Both bridges require "api-platform/doctrine-common": "^5.0@alpha". Under --prefer-lowest, Composer resolves api-platform/doctrine-common to v5.0.0-alpha.1 (the only published 5.0 alphas are alpha.1 and alpha.2). But the current bridge code uses ApiPlatform\Doctrine\Common\Filter\NameConverterAwareTrait, which was added to doctrine-common in #8351 and is not part of any tagged release yet. So the lowest install pulls a doctrine-common that predates the trait.
Reproduction (PHP 8.5, matching the CI lowest job)
cd src/Doctrine/Orm
composer update --prefer-lowest --prefer-source
vendor/bin/phpunit --ignore-baseline
Error: Trait "ApiPlatform\Doctrine\Common\Filter\NameConverterAwareTrait" not found
src/Doctrine/Orm/Filter/ExistsFilter.php:130
Tests: 293, Errors: 43
Suggested fix
Point the bridges' api-platform/doctrine-common lowest constraint at the monorepo dev branch (which contains the trait), the same way #7237 dev-aliased inter-component constraints. A follow-up PR is ready.
The durable fix is to tag a doctrine-common alpha that ships NameConverterAwareTrait, then raise the floor to exclude the older alphas.
- Lingua principale
- PHP
- Stelle
- 2.6k
- Fork
- 982
- Merge medio
- 1g 16h
- PR unite (30g)
- 59
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di api-platform/core
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
api-platform/core#8564 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
api-platform/core#8495 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
api-platform/core#8471 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
api-platform/core#8475 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
api-platform/core#8447 ·
Tutte le issue di api-platform/core
Issue simili
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Automattic/blocks-engine#2161 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/static-site-importer#1824 ·
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Cannot reset column width Aperta0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100