File tree 3 files changed +10
-0
lines changed
tests/Integration/Fixtures
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 89
89
use PhpCsFixer \Fixer \Import \OrderedImportsFixer ;
90
90
use PhpCsFixer \Fixer \LanguageConstruct \DeclareEqualNormalizeFixer ;
91
91
use PhpCsFixer \Fixer \LanguageConstruct \IsNullFixer ;
92
+ use PhpCsFixer \Fixer \LanguageConstruct \NullableTypeDeclarationFixer ;
92
93
use PhpCsFixer \Fixer \LanguageConstruct \SingleSpaceAroundConstructFixer ;
93
94
use PhpCsFixer \Fixer \ListNotation \ListSyntaxFixer ;
94
95
use PhpCsFixer \Fixer \NamespaceNotation \BlankLinesBeforeNamespaceFixer ;
311
312
DeclareEqualNormalizeFixer::class,
312
313
// Replaces `is_null($var)` expression with `null === $var`
313
314
IsNullFixer::class,
315
+ // Nullable single type declaration should be standardised using question mark syntax.
316
+ NullableTypeDeclarationFixer::class,
314
317
// Ensures a single space around language constructs.
315
318
SingleSpaceAroundConstructFixer::class,
316
319
// Namespace must not contain spacing, comments or PHPDoc.
Original file line number Diff line number Diff line change @@ -170,4 +170,7 @@ class Basic extends AbstractBasic implements InterfaceFromThisNamespace // Fully
170
170
2 ,
171
171
);
172
172
}
173
+
174
+ // NullableTypeDeclarationFixer
175
+ public function withParameters (?string $ nullableValue ): void {}
173
176
}
Original file line number Diff line number Diff line change @@ -167,4 +167,8 @@ but should be heredoc instead';
167
167
2
168
168
);
169
169
}
170
+
171
+ // NullableTypeDeclarationFixer
172
+ public function withParameters (null |string $ nullableValue ): void
173
+ {}
170
174
}
You can’t perform that action at this time.
0 commit comments