-
Notifications
You must be signed in to change notification settings - Fork 180
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
Symfony 7 compatibillity #631
Conversation
Add contarint for Symfony 7
Drop Symfony 6.4 and PHP <= 8.1
Co-authored-by: Alexis Lefebvre <[email protected]>
Do you know why it fails with PHP 8.2? It may be due to the fact that annotations are not working with PHP 8.2+. 😬 It may work if we convert annotations to attributes in the test entity https://github.com/liip/LiipFunctionalTestBundle/blob/master/tests/App/Entity/User.php |
This what I was searching for, and agree that is a Doctrine Annotation vs Attributes conflict. If I'm not wrong, both can be used at the same time. I'll have a try |
Please hold on, let's check something first: #630 (comment) |
Ok, so what's next. Do we close it or I can push my tries with attributes to see what happens ? |
As you want, you can try to migrate to a YAML configuration as in LiipFunctionalTestBundle: Otherwise we'll be able to do it, no problem. |
The other problème is here I think.
But how say use attribute for 8.2 and annotation otherwise I change to attribute to test it. |
Are annotations still necessary? I'm pretty sure that attributes can be used with Symfony 5.4+. |
If you want to continue to work on this subject, please open another PR where you only drop support of Symfony 4.4 (you'll have to create a branch for that). Once it will be merged, you'll be able to rebase this PR and tests will be run automatically. |
@@ -15,27 +15,27 @@ | |||
} | |||
], | |||
"require": { | |||
"php": "^7.4 || ^8.0", | |||
"php": "^7.4 || ^8.0 || ^8.1 || ^8.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert "^7.4 || ^8.0" is fine
@@ -22,6 +22,10 @@ | |||
* @ORM\Entity() | |||
* @ORM\Table("liip_user") | |||
*/ | |||
#[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this, to the following, and see if this fix some errors? On Php 7.4 run.
#[ORM\Entity()]
#[ORM\Table(name: "liip_user")]
- php-version: 8.1 | ||
symfony-version: "^6.4" | ||
- php-version: 8.2 | ||
symfony-version: "^6.4" | ||
- php-version: 8.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a testrun for php 8.3 as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to add it in a new PR.
My bad, it requires PHP 8.0+. 😬 |
I opened a new PR based on this one: |
See the release: #630 (comment) |
This may allow Symfony 7 support.
Older version were dropped and older PHP version.
Fell free to comment/annotate 😃
Fixes #630