Skip to content

Conversation

@MortalFlesh
Copy link
Contributor

No description provided.

@MortalFlesh MortalFlesh requested a review from OndraM April 5, 2022 08:30
@MortalFlesh MortalFlesh added the WIP label Apr 5, 2022
@MortalFlesh MortalFlesh requested a review from jirinovak April 6, 2022 11:10
@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

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

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
@MortalFlesh MortalFlesh force-pushed the feature/add-fixers-for-php8 branch from d06acf6 to 79a2ec4 Compare April 21, 2022 16:27
@OndraM OndraM closed this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants