Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support for Symfony 6.4 in the 4.3 branch is broken

未关闭 适合新手
#8,564 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
php, symfony
领域
backend, testing

调研方向

查看 ApiTestCase 类以及拉取请求 #8523 中的更改。找到调用 setBrowserKitAssertionsAsVerbose() 的位置,并添加针对 Symfony 7 的版本检查。在 Symfony 6.4 环境中运行测试以验证修复。

由索引模型根据 Issue 内容生成。

描述

API Platform version(s) affected: 4.3.19

Description
Since version 4.3.19, it is impossible to use APIP with Symfony 6.4 even though Composer allows it.

The reason is that a call to a function setBrowserKitAssertionsAsVerbose() that only exists in Symfony 7 was added in https://github.com/api-platform/core/pull/8523.

How to reproduce

Install api-platform/core 4.3 in a Symfony 6.4 app. Launch tests from classes that inherit from APIP's ApiTestCase.

Possible Solution

Perhaps have a capabilities check to avoid calling a non-existing function?

主要语言
PHP
星标
2.6k
派生
982
平均合并
1 天 17 小时
30 天内合并 PR
55

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

api-platform/core 的其他 Issue

查看 api-platform/core 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。