Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

CI: doctrine-orm/odm PHPUnit red on PHP 8.5 lowest (NameConverterAwareTrait not found)

クローズ
#8,444 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
backend, ci-cd

調査の方向性

src/Doctrine/Orm で composer update --prefer-lowest --prefer-source を実行して始め、bridge の依存関係の制約を確認します。#7237 の dev-alias パターンと比較し、対応する Doctrine ODM bridge も確認してください。NameConverterAwareTrait エラーなしで PHP 8.5 の最低バージョンを使う PHPUnit ジョブ 2 件がパスすれば完了です。issue にはフォローアップ PR がすでに準備できているとあるため、作業を重複させる前に確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
PHP
スター
2.6k
フォーク
987
平均マージ
1日 10時間
マージ済み PR(30日)
76

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

api-platform/core のほかの issue

api-platform/core の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。