Closed aivchen closed 8 months ago
@aivchen in https://github.com/manticoresoftware/manticoresearch-php/issues/137#issuecomment-1798207734 we agreed to adopt https://github.com/manticoresoftware/php-code-standard instead, which is more complex than just PSR-12. Would you like to look into it to possibly remake your changes accordingly, so they comply with the adopted standards?
Sure! I'll do my best.
Done. But I excluded some rules from the config:
vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/TypeHints/DeclareStrictTypesSniff.php
- it breaks the codeSlevomatCodingStandard.Complexity.Cognitive
- this rule is available only in slevomat/coding-standard:>=8.0
. But that package requires php >= 7.2 while our minimal requirement is PHP 7.1. So I had to install slevomat/coding-standard:^7.0
After resolving the conflicts that appeared due to later commits, it's done via https://github.com/manticoresoftware/manticoresearch-php/pull/189
Switch from PSR-2 to PSR-12. Fixes #137.