File tree 3 files changed +7
-0
lines changed
tests/Integration/Fixtures
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 46
46
use PhpCsFixer \Fixer \Basic \BracesFixer ;
47
47
use PhpCsFixer \Fixer \Basic \NoTrailingCommaInSinglelineFixer ;
48
48
use PhpCsFixer \Fixer \Basic \PsrAutoloadingFixer ;
49
+ use PhpCsFixer \Fixer \Casing \ClassReferenceNameCasingFixer ;
49
50
use PhpCsFixer \Fixer \Casing \MagicMethodCasingFixer ;
50
51
use PhpCsFixer \Fixer \Casing \NativeFunctionCasingFixer ;
51
52
use PhpCsFixer \Fixer \Casing \NativeTypeDeclarationCasingFixer ;
232
233
WhitespaceAfterCommaInArrayFixer::class,
233
234
// Classes must be in a path that matches their namespace
234
235
PsrAutoloadingFixer::class,
236
+ // When referencing an internal class it must be written using the correct casing.
237
+ ClassReferenceNameCasingFixer::class,
235
238
// Magic method definitions and calls must be using the correct casing
236
239
MagicMethodCasingFixer::class,
237
240
// Function defined by PHP should be called using the correct casing
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ class Basic
18
18
$ useStrictParam = in_array (1337 , $ fooBar , true );
19
19
// NoSpaceAroundDoubleColonFixer
20
20
$ className = DateTime::class;
21
+ // ClassReferenceNameCasingFixer
22
+ $ date = new \DateTime ();
21
23
// SingleSpaceAfterConstructFixer, StrictComparisonFixer
22
24
if ($ a === $ b || $ bazLength !== 3 ) {
23
25
return true ;
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ class Basic
17
17
$ useStrictParam = in_array (1337 , $ fooBar );
18
18
// NoSpaceAroundDoubleColonFixer
19
19
$ className = DateTime :: class;
20
+ // ClassReferenceNameCasingFixer
21
+ $ date = new \datetime ();
20
22
// SingleSpaceAfterConstructFixer, StrictComparisonFixer
21
23
if ($ a == $ b || $ bazLength != 3 ) { return true ; }
22
24
return false ; // BlankLineBeforeStatementFixer
You can’t perform that action at this time.
0 commit comments