Skip to content

Commit

Permalink
Config parameters changing for Blank lines before namespace (#13)
Browse files Browse the repository at this point in the history
* Config parameters changing for `Blank lines before namespace`

* Update cs_rules.php

* Update composer.json

---------

Co-authored-by: Andrey Maklakov <[email protected]>
Co-authored-by: Eldario <[email protected]>
  • Loading branch information
3 people authored Jun 26, 2023
1 parent 7967908 commit 4a38b25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## Unreleased

### Changed

- `single_blank_line_before_namespace` has been replaced with `blank_lines_before_namespace` according base package issue. [#7053]

[#7053]:https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7053

## v1.4.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"require": {
"php": "^8.0",
"friendsofphp/php-cs-fixer": "^v3.16.0"
"friendsofphp/php-cs-fixer": "^v3.18.0"
},
"require-dev": {
"phpstan/phpstan": "^1.10"
Expand Down
3 changes: 2 additions & 1 deletion cs_rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
'short_scalar_cast' => true,
'single_line_comment_style' => true,
'single_blank_line_at_eof' => true,
'single_blank_line_before_namespace' => true,
'blank_lines_before_namespace' => true,
'single_blank_line_before_namespace' => false, // deprecated
'single_line_after_imports' => true,
'single_quote' => true,
'space_after_semicolon' => true,
Expand Down

0 comments on commit 4a38b25

Please sign in to comment.