Releases: nextcloud/coding-standard
Releases · nextcloud/coding-standard
v1.3.2
v1.3.1
Fixed
- Removed misbehaving
ErickSkrauch/blank_line_before_return
andErickSkrauch/line_break_after_statements
rules
v1.3.0
Changed
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
v1.2.3
Changed
cast_spaces
: No space between cast and variable
v1.2.2
Added
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
v1.2.1
1.2.1 - 2024-02-01
Fix
- fix: Remove
fully_qualified_strict_types
again by @nickvergessen in #16
Full Changelog: v1.2.0...v1.2.1
v1.2.0
1.2.0 - 2024-02-01
Added
array_syntax
: Force short syntax for arraylist_syntax
: Same for listfully_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
.
What's Changed
Full Changelog: v1.1.1...v1.2.0
v1.1.1
v1.1.0
What's Changed
- Order imports alphabetically by @come-nc in #10
- fix(rules): Replace deprecated braces rules by @nickvergessen in #12
New Contributors
- @come-nc made their first contribution in #10
- @nickvergessen made their first contribution in #12
Full Changelog: v1.0.0...v1.1.0
v1.0.0 – php-cs-fixer 3.x
Major release because the old config needs to be adjusted.
See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.