DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
79 stars 10 forks source link

String operators on undeclared variables #571

Closed lhmuk closed 3 months ago

lhmuk commented 4 months ago

image

VSCode 1.89.1 PHP Extension 1.47.15561 (pre-release)

The PHP extension does not check for the use of string operators on undeclared variables as an error

jakubmisek commented 3 months ago

Thank you for the suggestion. You are right, in the case of .= operator, we silenced the warning because there were too many such cases in various legacy PHP frameworks. The regular string concatenation operator . gives the warning.

image

I think we can stop silencing the warning for the .= operator.