Skip to content

Commit 8a36d51

Browse files
committed
minor #3979 DX: enable php_unit_method_casing (keradus)
This PR was squashed before being merged into the 2.13-dev branch (closes #3979). Discussion ---------- DX: enable php_unit_method_casing Appendix for #3886 Commits ------- 3fff21a DX: enable php_unit_method_casing
2 parents dce63b1 + 3fff21a commit 8a36d51

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ $config = PhpCsFixer\Config::create()
5858
'ordered_class_elements' => true,
5959
'ordered_imports' => true,
6060
'php_unit_internal_class' => true,
61+
'php_unit_method_casing' => true,
6162
'php_unit_ordered_covers' => true,
6263
'php_unit_set_up_tear_down_visibility' => true,
6364
'php_unit_strict' => true,

src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private function isMethod(Tokens $tokens, $index)
204204
*/
205205
private function startsWith($needle, $haystack)
206206
{
207-
return substr($haystack, 0, strlen($needle)) === $needle;
207+
return substr($haystack, 0, \strlen($needle)) === $needle;
208208
}
209209

210210
/**

0 commit comments

Comments
 (0)