feat: Deprecate CompactNullableTypehintFixer and proxy to CompactNullableTypeDeclarationFixer#7339
Conversation
CompactNullableTypehintFixer and proxy to CompactNullableTypeDeclarationFixerCompactNullableTypehintFixer and proxy to CompactNullableTypeDeclarationFixer
91ba5fd to
8ea0554
Compare
CompactNullableTypehintFixer and proxy to CompactNullableTypeDeclarationFixerCompactNullableTypehintFixer and proxy to CompactNullableTypeDeclarationFixer
|
I am wondering if we should remove, or reduce test class for deprecated fixer, which now only acts as proxy 🤔. It does not make sense to run these test cases twice. @keradus what is the correct approach? |
|
I'm OK to keep duplicated test cases (one under old fixer name, one under new fixer name) or integration tests for both, old and new fixer, so we ensure both works the same - if proxy fixer would get broken due to whatever reason, we want to detect that. and sometimes proxy fixers are easy, but sometimes they apply some configuration or multiple new fixers, and things can get messy. also, integration tests are helping us to ensure proper priorities. if possible , I would consider to avoid code duplication for utests, eg maybe deprecated fixer can reuse the tests class from new fixer ( |
…bleTypeDeclarationFixer
8ea0554 to
0a6ba08
Compare
18e173e to
b6d367b
Compare
This pull request
CompactNullableTypehintFixerand proxies toCompactNullableTypeDeclarationFixerFollows #7338.
💁♂️ Also see https://www.php.net/manual/en/language.types.declarations.php.