Skip to content

Add compatibility/arrow-functions-feature lint #42

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

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Jan 18, 2025

This is my first attempt at writing a lint!

In order to test it out properly, the MINIMUM_PHP_VERSION needs to be lowered to PHP73 since arrow functions are available on PHP 7.4+. (note: there is currently an issue with "Null Coalesce Assignment Feature" that warns for php_version = "7.4" see more info here: 95a84ce#r151496707)

pub const MINIMUM_PHP_VERSION: PHPVersion = PHPVersion::PHP74;

I have done that locally, and the lint seems to be working! 🎉

Screenshot 2025-01-18 at 16 05 13

Copy link
Member

@azjezz azjezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution 😄 could you please rebase?

@LinusU LinusU force-pushed the lu-arrow-functions branch from 7d04960 to 8f02f85 Compare January 20, 2025 14:01
@LinusU
Copy link
Contributor Author

LinusU commented Jan 20, 2025

Applied suggestions and rebased ✅

@azjezz azjezz added Priority: Medium This issue may be useful and needs attention. Status: Revision Needed Multiple reviewers found issues in the PR that need addressing. Type: Enhancement Request for additions or changes that improve existing functionality. Subject: Linter An issue or PR related to the linter. labels Jan 23, 2025
@LinusU LinusU force-pushed the lu-arrow-functions branch from 8f02f85 to 3242699 Compare January 23, 2025 09:19
@LinusU
Copy link
Contributor Author

LinusU commented Jan 23, 2025

Rebased again and ran cargo fmt 🚀

@azjezz azjezz merged commit ef4f007 into carthage-software:main Jan 23, 2025
4 checks passed
@azjezz azjezz added Status: Closed This issue is closed and no more work is planned. and removed Status: Revision Needed Multiple reviewers found issues in the PR that need addressing. labels Jan 23, 2025
@LinusU LinusU deleted the lu-arrow-functions branch January 24, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium This issue may be useful and needs attention. Status: Closed This issue is closed and no more work is planned. Subject: Linter An issue or PR related to the linter. Type: Enhancement Request for additions or changes that improve existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants