Skip to content

Commit cf5f18d

Browse files
Merge pull request #16 from nextcloud/nickvergessen-patch-1
fix: Remove fully_qualified_strict_types again
2 parents 424cdd9 + 35fd40e commit cf5f18d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 1.2.1 - 2024-02-01
5+
### Fix
6+
* fix: Remove `fully_qualified_strict_types` again by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/16
7+
48
## 1.2.0 - 2024-02-01
59
### Added
610
- `array_syntax`: Force short syntax for array
711
- `list_syntax`: Same for list
8-
- `fully_qualified_strict_types`: Remove namespace from classname when there is a `use` statement, and add missing backslash for global namespace
12+
- ~~`fully_qualified_strict_types`: Remove namespace from classname when there is a `use` statement, and add missing backslash for global namespace~~ - Removed in 1.2.1 due to issues
913
- `no_leading_import_slash`: Remove leading slash from `use` statement
1014
- `nullable_type_declaration_for_default_null_value`: Add missing `?` on type declaration for parameters defaulting to `null`. This will most likely be needed to avoid warnings in PHP 8.4.
1115
- `yoda_style`: forbid yoda style comparision. This replaces `null === $a` by `$a === null`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For convenience you may add it to the `scripts` section of your `composer.json`:
4646
}
4747
```
4848

49-
*Note: Don't forget to exclude .php_cs.dist in your build scripts.*
49+
*Note: Don't forget to exclude `.php-cs-fixer.dist.php` and `.php-cs-fixer.cache` in your build scripts.*
5050

5151
## Upgrade from v0.x to v1.0
5252

src/Config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function getRules() : array {
3131
'elseif' => true,
3232
'encoding' => true,
3333
'full_opening_tag' => true,
34-
'fully_qualified_strict_types' => ['leading_backslash_in_global_namespace' => true],
3534
'function_declaration' => [
3635
'closure_function_spacing' => 'one',
3736
],

0 commit comments

Comments
 (0)