Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:test] Removal of the condition requiring a php version < 8.1 #1108

Merged
merged 1 commit into from May 3, 2022

Conversation

mdoutreluingne
Copy link
Contributor

@mdoutreluingne mdoutreluingne commented Apr 30, 2022

Fixes #1092

Here I do not see why we must have a version of php < 8.1 . This is what was causing the problem it seems to me, the condition passed in the else, so users with a version of php > 8.1 and API platform 2.6 had the wrong class path (ApiPlatform\Symfony\Bundle\Test\ApiTestCase).

I think here we just need to know whether the class exists or not. Future versions of API platform will warn about deprecation of this wrong class path ApiPlatform\Core\Bridge\Symfony\Bundle\Test\ApiTestCase from version 2.7 and become invalid in 3.0, as shown here .

Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mdoutreluingne - I too cannot see why we have PHP 8.1 apart of this conditional..

@jrushlow jrushlow added Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer labels May 3, 2022
@jrushlow jrushlow merged commit cd0d38e into symfony:main May 3, 2022
@mdoutreluingne mdoutreluingne deleted the fix-path-api-test-case branch May 4, 2022 05:31
@jrushlow jrushlow mentioned this pull request May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ApiTestCase generator uses wrong path
2 participants