File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
82
82
- Fixed bug #1591 : Autoloader failing to load arbitrary files when installed_paths only set via a custom ruleset
83
83
- Fixed bug #1605 : Squiz.WhiteSpace.OperatorSpacing false positive on unary minus after comment
84
84
-- Thanks to Juliette Reinders Folmer for the patch
85
+ - Fixed bug #1615 : Uncaught RuntimeException when phpcbf fails to fix files
85
86
- Fixed bug #1637 : Generic.WhiteSpaceScopeIndent closure argument indenting incorrect with multi-line strings
86
87
- Fixed bug #1638 : Squiz.WhiteSpace.ScopeClosingBrace closure argument indenting incorrect with multi-line strings
87
88
- Fixed bug #1640 : Squiz.Strings.DoubleQuoteUsage replaces tabs with spaces when fixing
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ public function fixFile()
203
203
204
204
if ($ this ->numFixes > 0 ) {
205
205
if (PHP_CODESNIFFER_VERBOSITY > 1 ) {
206
- @ob_end_clean ();
206
+ if (ob_get_level () > 0 ) {
207
+ ob_end_clean ();
208
+ }
209
+
207
210
echo "\t*** Reached maximum number of loops with $ this ->numFixes violations left unfixed *** " .PHP_EOL ;
208
211
ob_start ();
209
212
}
You can’t perform that action at this time.
0 commit comments