format/types
Type declarations, type checks and inferred types. Also in lint (77) and analyse (118).
compact-nullable
Remove extra spaces in a nullable type declaration.
In the format-laravel and format-psr12 presets. Safe fix.
declaration-spacing
Ensure single space between a variable and its type declaration in function arguments and properties.
In the format-laravel preset. Safe fix.
nullable-for-null-default
Adds or removes ? before single type declarations or |null at the end of union types when parameters have a default null value.
In the format-laravel preset. Safe fix.
nullable-syntax
Nullable single type declaration should be standardised using configured syntax.
In the format-laravel preset. Safe fix.
ordered
Sort union types and intersection types using configured order.
Not in any preset. Safe fix.
union-spacing
A single space or none should be around union type and intersection type operators.
In the format-laravel preset. Safe fix.