Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support for Symfony 6.4 in the 4.3 branch is broken

Open Beginner friendly
#8,564 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
php, symfony
Domain
backend, testing

Research direction

Look at the ApiTestCase class and the change from pull request #8523. Find where setBrowserKitAssertionsAsVerbose() is called and add a version check for Symfony 7. Run the tests in a Symfony 6.4 environment to verify the fix.

Written by the indexing model from the issue text.

Description

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?

Dominant language
PHP
Stars
2.6k
Forks
982
Avg merge
1d 17h
Merged PRs (30d)
55

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from api-platform/core

All issues in api-platform/core

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.