Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Supports PHP 8+ #75

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

Closed

Conversation

@MortalFlesh
Copy link
Contributor

@MortalFlesh MortalFlesh commented Apr 5, 2022

No description provided.

@MortalFlesh MortalFlesh force-pushed the feature/add-fixers-for-php8 branch 2 times, most recently from bfe7492 to 6ef593a Compare April 11, 2022 08:48
@MortalFlesh MortalFlesh changed the title (削除) Update dependencies (削除ここまで) (追記) Supports PHP 8+ (追記ここまで) Apr 11, 2022
Comment on lines 34 to 35
$services->set(PhpdocToPropertyTypeFixer::class);
$services->set(PropertyTypeHintSniff::class);
Copy link
Contributor

Choose a reason for hiding this comment

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

They do the same? (Also the other two below). If so, I'd choose one, preferably the PhpCsFixer.

They sometimes do different adjustments and makes unsolvable conflict. Also any fixer slows the execution down, so if they don't adds a value, we should not be using them.

Copy link
Contributor Author

@MortalFlesh MortalFlesh Apr 20, 2022

Choose a reason for hiding this comment

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

Slevomat type hint sniffs handles superfluous annotations - I could not figure out how to remove them otherwise.

"require": {
"php": "^7.3 || ^8.0",
"friendsofphp/php-cs-fixer": "^3.0",
"friendsofphp/php-cs-fixer": "dev-feature/fix-union-types-in-phpdocs as 3.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

As we discussed, this will make it not installable without copying repositories block to every composer.json using lmc/coding-standard 😬

ecs.php Outdated
]
);

$parameters->set(Option::PARALLEL, true);
Copy link
Contributor

@freiondrej-lmc freiondrej-lmc Apr 20, 2022

Choose a reason for hiding this comment

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

@MortalFlesh is this necessary? symplify/easy-coding-standard:^10 seems to enable this by default as well :)

@MortalFlesh MortalFlesh force-pushed the feature/add-fixers-for-php8 branch from 566f56d to 834ccdf Compare April 21, 2022 13:02
Copy link
Contributor

@freiondrej-lmc freiondrej-lmc left a comment

Choose a reason for hiding this comment

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

parameters->set(Option::PARALLEL, true); is not necessary IMO as it is on by default in ^10.0 :)

@MortalFlesh MortalFlesh force-pushed the feature/add-fixers-for-php8 branch 3 times, most recently from 884e9df to d06acf6 Compare April 21, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

3 more reviewers

@OndraM OndraM OndraM requested changes

@freiondrej-lmc freiondrej-lmc freiondrej-lmc requested changes

@jirinovak jirinovak jirinovak approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /