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

Update to laminas-coding-standard v2 series #47

Merged
merged 3 commits into from
Dec 1, 2021

Conversation

weierophinney
Copy link
Member

To prepare for PHP 8.1, we need to first update to a version of laminas-coding-standard that will work with PHP 7.4 forward, which means moving to laminas-coding-standard 2.2.

This patch updates the constraint in composer.json, and updates the phpcs.xml.dist to reflect the new schema.
I then applied fixes, and resolved Psalm errors that arose due to touching files again.

- Updates to laminas-coding-standard 2.2
- Applies ruleset

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Majority have to do with Psalm inferring ever-so-slightly different return values for data providers than what is documented, even when what is documented is correct.
Other errors were likely present before, but because I touched the files, Psalm re-scanned and reflagged; these were mostly of the MixedAssignment variety.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney added this to the 2.13.0 milestone Dec 1, 2021
7.4 was what I was testing against, and what I plan for the next minor (2.13.0).

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@weierophinney weierophinney merged commit c513b92 into laminas:2.13.x Dec 1, 2021
@weierophinney weierophinney deleted the feature/laminas-cs-2 branch December 1, 2021 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant