All notable changes to this project will be documented in this file.
type_declaration_spaces
: A single space between typehint and variable name
- Removed misbehaving
ErickSkrauch/blank_line_before_return
andErickSkrauch/line_break_after_statements
rules
trailing_comma_in_multiline
: Add a trailing comma to multline function parametersMultilinePromotedPropertiesFixer
: Break promoted properties on multiple linesErickSkrauch/blank_line_before_return
: Add a blank line before each returnErickSkrauch/line_break_after_statements
: Add a blank line after all control statementsconcat_space
: Concatenation should be spacednullable_type_declaration
: ChangesDateTimeInterface|null
to?DateTimeInterface
cast_spaces
: No space between cast and variable
cast_spaces
: A single space between cast and variablelowercase_cast
: Cast should be written in lower casemethod_chaining_indentation
: Use the same indentation when changing methodsno_short_bool_cast
: Short cast bool using double exclamation mark should not be usedphpdoc_align
: All items of the given PHPDoc tags must be left-alignedphpdoc_single_line_var_spacing
: Single line @var PHPDoc should have proper spacingphpdoc_var_annotation_correct_order
: Enforce the correct order for phpdoc annotationsshort_scalar_cast
: (boolean) => (bool), (integer) => (int), ...single_quote
: Use single quotes for simple stringstypes_spaces
: No spaces around union and intersection type operators
- fix: Remove
fully_qualified_strict_types
again by @nickvergessen in #16
array_syntax
: Force short syntax for arraylist_syntax
: Same for list- Removed in 1.2.1 due to issuesfully_qualified_strict_types
: Remove namespace from classname when there is ause
statement, and add missing backslash for global namespaceno_leading_import_slash
: Remove leading slash fromuse
statementnullable_type_declaration_for_default_null_value
: Add missing?
on type declaration for parameters defaulting tonull
. This will most likely be needed to avoid warnings in PHP 8.4.yoda_style
: forbid yoda style comparision. This replacesnull === $a
by$a === null
.
- feat: use php-cs-fixer/shim by @kesselb in #13
- Order imports alphabetically by @come-nc in #10
- fix(rules): Replace deprecated braces rules by @nickvergessen in #12
- Update php-cs-fixer to 3.x
- See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.
- New rule: short list syntax
- php7.2 support (back, for apps that support Nextclod 20 - 21)
- php8 support
- New rule: binary operators should be surrounded by a single space
- php-cs-fixer updated to the latest version