Skip to content

Conversation

OndraM
Copy link
Contributor

@OndraM OndraM commented Nov 27, 2020

Another step towards PHP 8 support.

In order to upgrade from ECS 7 to ECS 8, I've bacported sniffs removed in ECS 8 (which we use and want to keep using). Fixes #39 . (Sniffs original source: https://github.com/symplify/coding-standard/tree/v7.3.18/src/Sniffs/Naming )

But the ECS-upgrade journey continues, because ECS > 8.1.21 considers YAML config deprecated and forces you to use PHP config (deprecated-packages/symplify#2008) 😳 .

@OndraM OndraM added this to the 3.0 milestone Nov 27, 2020
@OndraM OndraM changed the title Update ECS, backport removed sniffs #46 Update ECS, backport removed sniffs Nov 27, 2020
@legendik
Copy link

legendik commented Nov 27, 2020

How about mark those sniffs deprecated and consider to recommend Slamdunk/phpstan-extensions?

@OndraM
Copy link
Contributor Author

OndraM commented Nov 27, 2020

@legendik I don't fell like opinionated "class naming" should be part of static analysis... While I understand AST (in PHPStan) is much better way how to achieve this check from implementation point of view (this was the main argument for the deprecation in ECS) , from "user" point of view it makes sense to have something like this in code style check.

(If we have common phpstan rules, then yes, it could be moved there, but we don't. So I don't like to mark as deprecated something we use, it works and we don't have equivalent replacement.)

@OndraM OndraM merged commit ada6a50 into main Dec 7, 2020
@OndraM OndraM deleted the feature/ecs-update branch December 7, 2020 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some sniffs are deprecated
4 participants