You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See code below, there are 2 <?php endif;?> occurrences that need to be fixed. If I run only space_after_semicolon, they both get fixed. If I run the full set, only 1 of them gets fixed the first run, a second run fixes the other as well. Because of the 1 fix 1 not fix I thought it might be more than "just" a priority issue, but let's hope not.
For the same reason I included a rather big example (nested stuff), it might be reproducable with way less.
The PHP version you are using ($ php -v):
PHP 7.1.18 (cli) (built: May 25 2018 19:18:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.18, Copyright (c) 1999-2018, by Zend Technologies
PHP CS Fixer version you are using ($ php-cs-fixer -V):
PHP CS Fixer 2.12.1 Long Journey by Fabien Potencier and Dariusz Ruminski
Forgot to note, but as can be seen at case 10 of #3844, space_after_semicolon has been applied aftersemicolon_after_instruction, which is another reason I don't think it actually is a priority issue.
dmvdbrugge
changed the title
(Priority?) Issue with semicolon_after_instruction and space_after_semicolon
(Priority?) Issue with semicolon_after_instruction and space_after_semicolon
Jul 3, 2018
This PR was squashed before being merged into the 2.12 branch (closes#3866).
Discussion
----------
SpaceAfterSemicolonFixer - loop over all tokens
closes#3856
Commits
-------
9675267 SpaceAfterSemicolonFixer - loop over all tokens
See code below, there are 2
<?php endif;?>
occurrences that need to be fixed. If I run onlyspace_after_semicolon
, they both get fixed. If I run the full set, only 1 of them gets fixed the first run, a second run fixes the other as well. Because of the 1 fix 1 not fix I thought it might be more than "just" a priority issue, but let's hope not.For the same reason I included a rather big example (nested stuff), it might be reproducable with way less.
The PHP version you are using (
$ php -v
):PHP CS Fixer version you are using (
$ php-cs-fixer -V
):The command you use to run PHP CS Fixer:
The configuration file you are using, if any:
Basically the same as dmvdbrugge/dynamic-components, except
explicit_string_variable
,header_comment
,no_alternative_syntax
, andno_unset_on_property
If applicable, please provide minimum samples of PHP code (as plain text, not screenshots):
Immediately arrive at the last step
Meta: this is case 10 of #3844
The text was updated successfully, but these errors were encountered: