-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Update laminas-coding-standard to v2 #202
Update laminas-coding-standard to v2 #202
Conversation
😭 |
Yup, you can force |
Wouldn't CI fail nevertheless, if I don't commit the |
Only in the next lockfile update PR |
9ab6d41
to
7ed01b6
Compare
As I expected, build can't get green if I don't commit I can commit it though, can't I? |
The idea is to commit a |
Oh, now I get it. But I don't see a laminas guide on how to produce the |
There's no guide for that, afaik: I proposed an approach in #202 (comment)
this gives you a |
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
7ed01b6
to
ff5d13e
Compare
Thank you, I was missing the last step. Now, down to the PR: LCSv2 introduces |
It really depends - I wouldn't say that the laminas-mail/psalm-baseline.xml Lines 3904 to 3908 in 2ec0498
I think we need to disable that rule here. See how it's done in |
…perators rules, we are not ready Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
… kick in Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
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.
I've carefully fixed all the PHPCS issues.
I've also fixed most of the notable PSalm issues; the rest that I've baselined are just too tedious to be done manually now in PHPDocs.
Similarly to what I've done for laminas-form:v3.0.0
I'll be happy to clear all PSalm baseline once we can ship native types though.
@@ -25,7 +25,7 @@ class SmtpPluginManager extends AbstractPluginManager | |||
/** | |||
* Service aliases | |||
* | |||
* @var array | |||
* @var array<array-key, class-string> |
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.
The template parameter on AbstractPluginManager<InstanceType>
should probably be filled:
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.
I've looked at laminas/laminas-validator#129 and commit d20feb2 is the result
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.
Error: src/Protocol/SmtpPluginManager.php:26:23: InvalidTypeImport: Type alias FactoriesConfigurationType imported from Laminas\ServiceManager\ConfigInterface
Because I've checked commit validity against latest deps, but PSalm in CI runs on lowest which misses all the latest types-related releases.
Should I revert this, or keep and baseline it?
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.
but PSalm in CI runs on lowest which misses all the latest types-related releases.
It should run with locked dependencies.
This seems to occur because we're still on PHP 7.3, and the latest type improvements are on PHP 7.4.
Let's touch this in a follow-up that drops PHP 7.4 👍
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.
Ah, I see that you did add the templated types. In order for that to work, we need to drop PHP 7.3, and then a composer update
should bring us on par with the servicemanager improvements, as well as make the build green again 👍
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
…format param Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
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.
LGTM.
What's still missing:
- drop PHP 7.4
- re-generate baseline with the new dependency upgrades (it should get rid of the templated types issues)
Since you approved this PR, I guess I can merge this as-is (with failing build) and then open a follow up to drop PHP < 8.0. Merging red builds isn't good, but neither is discussing such big changes in the same PR. Confirm please, just so that I can learn your preferred way of managing such situations. |
No, please make it green first, be it through adjusted baseline or else, but let's not merge on red, as that just blocks other work, and will also lead to raised PRs by Renovate bot overnight :| |
Signed-off-by: Filippo Tessarotto <zoeslam@gmail.com>
Update laminas-coding-standard to v2
No description provided.