Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/PHPStan/Rules/IdToIDRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ abstract class IdToIDRule implements Rule
'Identifier',
'Identical',
'Identity',
'Identify',
'Identification',
'Idt', // IDT is an abbreviation for the brand "Integrated DNA Technologies, Inc."
];

Expand Down
3 changes: 3 additions & 0 deletions tests/PHPStan/IdToIDRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static function wrongID(): iterable
yield ['Id'];
yield ['labId'];
yield ['labIds'];
yield ['TestIdEntry'];
}

/** @dataProvider correctID */
Expand All @@ -42,6 +43,8 @@ public static function correctID(): iterable
yield ['openIdtPanelAnalyses'];
yield ['isIdenticalThing'];
yield ['hasIdentity'];
yield ['andIdentify'];
yield ['withIdentification'];
}

/** @dataProvider wrongToRight */
Expand Down