bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.61k stars 94 forks source link

PSR12 differents results with CS FIXER #2844

Closed nicojmb closed 5 months ago

nicojmb commented 5 months ago

Describe the bug I use Codeigniter4 to make my projects and use this package to coding standars:

The problem is that when i use intelephense get diferent result in "binary_operator" whe use the "!":

php-cs-fixer result:

if (! empty($record)) {
   //
}

intelephense result:

if (!empty($record)) {
   //
}

The console show this errors:

To Reproduce Format the document with intelephense.

Expected behavior a space between"!" and next code

Screenshots Left side is php-cs-fixer result. image

Platform and version Codeigniter 4.5 PHP 8.1 Intelephense v1.10.4 Visual Studio Code

bmewburn commented 5 months ago

Dup of https://github.com/bmewburn/vscode-intelephense/issues/1775