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

Some sniffs are deprecated #39

Closed
legendik opened this issue May 4, 2020 · 1 comment · Fixed by #47
Closed

Some sniffs are deprecated #39

legendik opened this issue May 4, 2020 · 1 comment · Fixed by #47
Milestone

Comments

@legendik
Copy link

legendik commented May 4, 2020

Following sniffs are deprecated. We should use https://github.com/Slamdunk/phpstan-extensions instead.

Notice: Sniff "Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff" is deprecated. Use "Symplify\CodingStandard\Rules\ClassNameRespectsParentSuffixRule" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/ClassNameSuffixByParentSniff.php on line 57
PHP Notice:  Sniff "Symplify\CodingStandard\Sniffs\Naming\ClassNameSuffixByParentSniff" is deprecated. Use "Symplify\CodingStandard\Rules\ClassNameRespectsParentSuffixRule" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/ClassNameSuffixByParentSniff.php on line 57

Notice: Sniff "Symplify\CodingStandard\Sniffs\Naming\AbstractClassNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/AbstractClassNameSniff.php on line 36
PHP Notice:  Sniff "Symplify\CodingStandard\Sniffs\Naming\AbstractClassNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/AbstractClassNameSniff.php on line 36

Notice: Sniff "Symplify\CodingStandard\Sniffs\Naming\InterfaceNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/InterfaceNameSniff.php on line 36
PHP Notice:  Sniff "Symplify\CodingStandard\Sniffs\Naming\InterfaceNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/InterfaceNameSniff.php on line 36

Notice: Sniff "Symplify\CodingStandard\Sniffs\Naming\TraitNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/TraitNameSniff.php on line 36
PHP Notice:  Sniff "Symplify\CodingStandard\Sniffs\Naming\TraitNameSniff" is deprecated. Use "https://github.com/Slamdunk/phpstan-extensions" instead in /Users/legendik/work/employee-persistor/vendor/symplify/coding-standard/src/Sniffs/Naming/TraitNameSniff.php on line 36

@OndraM
Copy link
Member

OndraM commented May 4, 2020

Well, we can't simply use Slamdunk/phpstan-extensions instead, because these are rules for PHPStan, not for easy coding standard 🤔. I will have a look what could be done there.

This is Tomas's explanation why this is happening:
https://www.tomasvotruba.com/blog/2020/05/04/how-to-upgrade-to-symplify-8-from-sniffs-to-phpstan-rules/

See also deprecated-packages/symplify#1906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants