vscode-phpfmt icon indicating copy to clipboard operation
vscode-phpfmt copied to clipboard

Integrates phpfmt into VS Code

Results 69 vscode-phpfmt issues
Sort by recently updated
recently updated
newest added

If I add php code inline which is not sticked against the httml code, it will be wrongfully indented. This gets indented far away from it's original position. `

The formatter removes the space between the type and the variable when: - Variable is passed by referenced - Variable's type has a leading slash This behavior is a huge...

If you have a class with a constant on it that is an array, static functions will get re-written to not be static (also, the `public` keyword gets removed). E.g:...

My code is: ``` $menu = []; $recurse = function ($parent, $path) use (&$recurse, &$menu, $res) { foreach ($res as $v) { if ($v['parent'] == $parent) { $name = "$path/{$v['name']}";...

{ "phpfmt.php_bin": "\"C:\\Program Files\\php\\php.exe\"" } mac system?

Command failed: php -l /var/folders/g4/08mc5dnx57qb_zr7l4f813900000gn/T/temp-zafedwzza.php PHP Fatal error: Constant expression contains invalid operations in /var/folders/g4/08mc5dnx57qb_zr7l4f813900000gn/T/temp-zafedwzza.php on line 46

**Issue** After formatting code in VS Code I'm seeing whitespace changes in all methods inside a class. Hence git is detecting the file as changed. Although they are the same....

when added some html inside php `before save` `after save` `if html added in echo it works correctly`

## Issue Description When I format a php file using Alt + Shift + F, two private static variables' declared names are changed without warning or explanation. Specifically for each...