All notable changes to this project will be documented in this file.
no_whitespace_in_blank_line: Remove trailing whitespace at the end of blank linesoperator_linebreak: Split conditional statements into multiple lines and place operator at the beginning
type_declaration_spaces: A single space between typehint and variable name
- Removed misbehaving
ErickSkrauch/blank_line_before_returnandErickSkrauch/line_break_after_statementsrules
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|nullto?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_typesagain 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 ausestatement, and add missing backslash for global namespaceno_leading_import_slash: Remove leading slash fromusestatementnullable_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 === $aby$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