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
PHP treats dot as decimal separator instead of concat operator if used directly after number.
PHP_CodeSniffer 2.7.1
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
Squiz.Strings.ConcatenationSpacing fix results with invalid PHP code
Squiz.Strings.ConcatenationSpacing fix creates syntax error when joining a number to a string
Jan 3, 2017
The fixer now puts parenthesis around LNUMBER and DNUMBER tokens before and after string concats without spaces. It doesn't technically need to do DNUMBER before a string concat, but I don't think it hurts.
Uh oh!
There was an error while loading. Please reload this page.
This fixer generates invalid PHP code in some cases. E.g.:
PHP reports the following error:
PHP treats dot as decimal separator instead of concat operator if used directly after number.
PHP_CodeSniffer 2.7.1
The text was updated successfully, but these errors were encountered: