I use Sublime Text 3 and CodeFormatter plugin to auto format my PHP on save. Recently I updated to PHP 7.4 which introduces typed properties
:
class Person {
private string $name;
private int $age;
}
Unfortunately CodeFormatter
doesn't handle these and after saving converts the class to look like this:
class Person {
stringprivate $name;
intprivate $age;
}
Seems CodeFormatter relies on phpF which hasn't been updated in years (according to GitHub).
Thoughts (other than trying VS Code)?