File tree 3 files changed +15
-0
lines changed
tests/Integration/Fixtures
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 46
46
use PhpCsFixer \Fixer \AttributeNotation \AttributeEmptyParenthesesFixer ;
47
47
use PhpCsFixer \Fixer \Basic \BracesFixer ;
48
48
use PhpCsFixer \Fixer \Basic \NoTrailingCommaInSinglelineFixer ;
49
+ use PhpCsFixer \Fixer \Basic \OctalNotationFixer ;
49
50
use PhpCsFixer \Fixer \Basic \PsrAutoloadingFixer ;
50
51
use PhpCsFixer \Fixer \Basic \SingleLineEmptyBodyFixer ;
51
52
use PhpCsFixer \Fixer \Casing \ClassReferenceNameCasingFixer ;
244
245
SingleLineEmptyBodyFixer::class, // Defined in PER 2.0
245
246
// Values separated by a comma on a single line should not have a trailing comma.
246
247
NoTrailingCommaInSinglelineFixer::class,
248
+ // Literal octal must be in 0o notation.
249
+ OctalNotationFixer::class,
247
250
// Arrays should be formatted like function/method arguments
248
251
TrimArraySpacesFixer::class,
249
252
// In array declaration, there MUST be a whitespace after each comma
Original file line number Diff line number Diff line change @@ -43,4 +43,10 @@ class NewPhpFeatures
43
43
string $ foo ,
44
44
string $ bar ,
45
45
): void {}
46
+
47
+ public function php81features (): void
48
+ {
49
+ // OctalNotationFixer
50
+ $ numberInOctalNotation = 0o123 ;
51
+ }
46
52
}
Original file line number Diff line number Diff line change @@ -44,4 +44,10 @@ class NewPhpFeatures
44
44
#[ParamAttribute] #[AnotherAttribute('foo ' )] string $ foo ,
45
45
string $ bar ,
46
46
): void {}
47
+
48
+ public function php81features (): void
49
+ {
50
+ // OctalNotationFixer
51
+ $ numberInOctalNotation = 0123 ;
52
+ }
47
53
}
You can’t perform that action at this time.
0 commit comments