-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Drop PHP 7, add PHP 8.2 Support #96
Conversation
Needs laminas-api-tools/api-tools-api-problem to be upgraded (laminas-api-tools/api-tools-api-problem#24) |
composer.json
Outdated
@@ -29,7 +29,7 @@ | |||
} | |||
}, | |||
"require": { | |||
"php": "^7.3 || ~8.0.0 || ~8.1.0", | |||
"php": "^7.3 || ~8.0.0 || ~8.1.0 || ~8.2.0", |
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.
Needs composer.lock
update too - possibly good idea to drop PHP 7 to simplify the matrix
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.
Done
Signed-off-by: Roger Vilà <[email protected]>
Signed-off-by: Roger Vilà <[email protected]>
301d7bb
to
9a5d236
Compare
Needs |
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.
Provided an initial review pass: it would be good to keep a larger baseline at first.
Patch is OK otherwise
src/DbConnectedResource.php
Outdated
@@ -97,6 +98,7 @@ public function fetch($id) | |||
if (0 === $resultSet->count()) { | |||
throw new DomainException('Item not found', 404); | |||
} | |||
/** @psalm-var array|object */ |
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.
Same here: let's leave the baseline larger here, rather than providing inline hints
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.
Done.
src/DbConnectedResource.php
Outdated
@@ -128,6 +130,7 @@ protected function retrieveData($data) | |||
return $filter->getValues(); | |||
} | |||
|
|||
/** @psalm-var array<string, mixed> */ |
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.
Isn't getValues()
already in this shape? 🤔
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.
It is. I've removed the hint, though this means stuffing something into the baseline. But Psalm should have been able to infer this.
test/ApplicationTest.php
Outdated
@@ -22,6 +23,12 @@ class ApplicationTest extends TestCase | |||
{ | |||
use ProphecyTrait; | |||
|
|||
/** @var ContainerInterface|ObjectProphecy */ |
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.
We can use native types in here, if needed, otherwise all good, so this is just a nit
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.
Done.
Bumps to versions known to test against 8.2. Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Turns out, there's no need anyways. Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Per @Ocramius Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Per @Ocramius Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Currently blocked by laminas-api-tools/api-tools-content-validation#22; turning to that next. |
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Now blocked by api-tools-mvc-auth, turning to that. |
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Bumps rpc to 1.8 - Bumps servicemanager to 3.11+ - Drops laminas-zendframework-bridge Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Picks up PHP 8.2 support Signed-off-by: Matthew Weier O'Phinney <[email protected]>
Ready for final review! |
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 @weierophinney
Description
Support PHP 8.2