-
-
Notifications
You must be signed in to change notification settings - Fork 88
Add support for PHP 8.5, Remove support for PHP 8.1 #211
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
Conversation
|
I'm looking into this failing test: 1) LaminasTest\Code\Reflection\ParameterReflectionTest::testGetType with data set #6 ('LaminasTest\Code\TestAsset\Cl...dClass', 'selfParameter', 'foo', 'self')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'self'
+'LaminasTest\Code\TestAsset\ClassTypeHintedClass' |
gsteel
left a comment
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.
Looks like ReflectionType::getName() has changed - it's not documented though: https://github.com/php/php-src/blob/php-8.5.0RC3/UPGRADING
9af7379 to
4ed019a
Compare
Signed-off-by: Alejandro Celaya <alejandrocelaya@gmail.com>
How would you suggest proceeding here? Considering the same test would now require different assertions for PHP 8.5 and previous versions? |
There are several ways:
|
|
@acelaya - If you can also upgrade PHPUnit to |
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Alejandro Celaya <alejandrocelaya@gmail.com>
I'm trying to do this, but it seems it might require updating psalm to v6 first. The problem is that psalm 5 requires Would you be ok separating the update to PHPUnit 11 out of this PR, until the project has been updated to psalm 6? The only problem is that the deprecation warnings are making the tests be marked as failed, even though they are actually passing now. EDIT: Actually, I could simply remove those |
Signed-off-by: Alejandro Celaya <alejandrocelaya@gmail.com>
Signed-off-by: Alejandro Celaya <alejandrocelaya@gmail.com>
Signed-off-by: Alejandro Celaya <alejandrocelaya@gmail.com>
|
Ok, CI is green now. I did the minimum changes to get it working. As I mentioned here, I could not update to PHPUnit 11 as it has a shared dependency with psalm, but with no overlapping in version constraints. The project probably needs to update to psalm 6 first. |
gsteel
left a comment
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.
Thanks @acelaya 👍
Description
This PR adds support for PHP 8.5, and drops support for PHP 8.1