Skip to content

Conversation

@simbig
Copy link
Contributor

@simbig simbig commented Dec 6, 2024

  • Added automated tests
  • Documented for all relevant versions
  • Updated the changelog

Changes

  • Refactored MLL\Utils\PHPStan\Rules\NameIdToIDRule to handle variable names, parameter names, method names and class names for incorrect capitalization of "Id"
  • Add 'Idt' and 'Identical' to the list of incorrect capitalizations for "Id" of MLL\Utils\PHPStan\Rules\NameIdToIDRule
  • Add RuleIdentifier 'mllLabRules.nameIdToID' to MLL\Utils\PHPStan\Rules\NameIdToIDRule
  • Add PHPStan-Rule MLL\Utils\PHPStan\Rules\CanonicalCapitalizations to check spelling of LabID

Breaking changes

  • Renamed class MLL\Utils\PHPStan\Rules\VariableNameIdToIDRule to MLL\Utils\PHPStan\Rules\NameIdToIDRule

Simon Bigelmayr added 14 commits December 6, 2024 08:17
- Refactored `MLL\Utils\PHPStan\Rules\VariableNameIdToIDRule` to `MLL\Utils\PHPStan\Rules\NameIdToIDRule` to handle variable names, method names and class names for incorrect capitalization of "Id"
- Add `Idt` to the list of incorrect capitalizations for "Id" of `MLL\Utils\PHPStan\Rules\NameIdToIDRule`
- Refactored `MLL\Utils\PHPStan\Rules\VariableNameIdToIDRule` to `MLL\Utils\PHPStan\Rules\NameIdToIDRule` to handle variable names, method names and class names for incorrect capitalization of "Id"
- Add `Idt` to the list of incorrect capitalizations for "Id" of `MLL\Utils\PHPStan\Rules\NameIdToIDRule`
…d-id-vs-ID-rule

# Conflicts:
#	src/PHPStan/Rules/NameIdToIDRule.php
@simbig simbig requested a review from spawnia December 6, 2024 16:18
simbig and others added 7 commits December 7, 2024 14:49
Co-authored-by: Benedikt Franke <benedikt.franke@mll.com>
# Conflicts:
#	src/PHPStan/Rules/VariableNameIdToIDRule.php
#	tests/PHPStan/Rules/CapitalizationOfIDRule/CapitalizationOfIDRuleTest.php
@spawnia
Copy link
Member

spawnia commented Dec 8, 2025

Superseded by #64 and #65.

@spawnia spawnia closed this Dec 8, 2025
@spawnia spawnia deleted the extend-id-vs-ID-rule branch December 8, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants