Inspectopedia
 
2024.3

Concatenation with arithmetic usage

Warning
New
Last modified: 03 December 2024

Reports the string concatenation expressions that are used together with +, -, <<, and >> operators. Starting with PHP 8, the concatenation operation has lower precedence and such expressions can thus produce unexpected results.

See Concatenation precedence (php.net) for details.