Inspectopedia Help

Concatenation with arithmetic usage

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.

Inspection Details

By default bundled with:

PhpStorm 2024.1, Qodana for PHP 2024.1,

Can be installed with plugin:

PHP, 241.SNAPSHOT

Last modified: 12 March 2024