From bb403214d97ca3773829c154431b2f0dfa79bac3 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 30 Apr 2019 17:30:49 +0300 Subject: [PATCH] disable self_accessor rule --- CHANGELOG.md | 4 ++++ src/Rules.php | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be273ce..c807231 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [0.3.1] - 2019-02-27 +### Removed +- `self_accessor` fixer because it leads to errors in interfaces, that returns self. + ## [0.3.0] - 2019-02-23 ### Added - `array_indentation` fixer. diff --git a/src/Rules.php b/src/Rules.php index b0fb6d5..ecf8b56 100644 --- a/src/Rules.php +++ b/src/Rules.php @@ -100,7 +100,6 @@ class Rules { 'return_type_declaration' => [ 'space_before' => 'none', ], - 'self_accessor' => true, 'set_type_to_cast' => true, 'short_scalar_cast' => true, 'single_quote' => true,