Skip to content

Commit f327f14

Browse files
committed
Bump minimal php-cs-fixer version to 2.15.0. Add additional rules.
1 parent bb40321 commit f327f14

File tree

4 files changed

+33
-17
lines changed

4 files changed

+33
-17
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- `simple_to_complex_string_variable` fixer.
10+
- `single_trait_insert_per_statement` fixer.
11+
- `native_function_type_declaration_casing` fixer.
12+
- `php_unit_mock_short_will_return` fixer.
13+
- `php_unit_dedicate_assert_internal_type` fixer.
14+
- `php_unit_no_expectation_annotation` fixer.
15+
16+
### Changed
17+
- `friendsofphp/php-cs-fixer` version bumped to `^2.15.0`.
818

9-
## [0.3.1] - 2019-02-27
1019
### Removed
1120
- `self_accessor` fixer because it leads to errors in interfaces, that returns self.
1221

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type": "library",
1818
"require": {
1919
"php": "^7.0",
20-
"friendsofphp/php-cs-fixer": "^2.13.0"
20+
"friendsofphp/php-cs-fixer": "^2.15.0"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^6.5.1"

composer.lock

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Rules.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Rules {
5353
'strategy' => 'no_multi_line',
5454
],
5555
'native_function_casing' => true,
56+
'native_function_type_declaration_casing' => true,
5657
'no_alternative_syntax' => true,
5758
'no_homoglyph_names' => true,
5859
'no_leading_import_slash' => true,
@@ -81,10 +82,13 @@ class Rules {
8182
'imports_order' => ['class', 'function', 'const'],
8283
],
8384
'php_unit_construct' => true,
85+
'php_unit_dedicate_assert_internal_type' => true,
8486
'php_unit_expectation' => true,
8587
'php_unit_method_casing' => true,
8688
'php_unit_mock' => true,
89+
'php_unit_mock_short_will_return' => true,
8790
'php_unit_namespaced' => true,
91+
'php_unit_no_expectation_annotation' => true,
8892
'php_unit_set_up_tear_down_visibility' => true,
8993
'php_unit_strict' => true,
9094
'pow_to_exponentiation' => true,
@@ -102,6 +106,8 @@ class Rules {
102106
],
103107
'set_type_to_cast' => true,
104108
'short_scalar_cast' => true,
109+
'simple_to_complex_string_variable' => true,
110+
'single_trait_insert_per_statement' => true,
105111
'single_quote' => true,
106112
'space_after_semicolon' => true,
107113
'standardize_increment' => true,

0 commit comments

Comments
 (0)