Skip to content

Commit

Permalink
DX: enable php_unit_method_casing
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Aug 22, 2018
1 parent 1311e2b commit 3fff21a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ $config = PhpCsFixer\Config::create()
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_internal_class' => true,
'php_unit_method_casing' => true,
'php_unit_ordered_covers' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_strict' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/PhpUnit/PhpUnitMethodCasingFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private function isMethod(Tokens $tokens, $index)
*/
private function startsWith($needle, $haystack)
{
return substr($haystack, 0, strlen($needle)) === $needle;
return substr($haystack, 0, \strlen($needle)) === $needle;
}

/**
Expand Down

0 comments on commit 3fff21a

Please sign in to comment.