Static array variables are not correctly formatted.
Posted: January 31st, 2018, 4:53 pm
When a static variable inside a function is an array, the autoformatter keeps trying to eat the indentation.
The following static array will keep changing.
Formatted version. Note that the indentation is missing.
The following static array will keep changing.
- Code: Select all
function someFunc() {
static $arr = [
1,
2,
3
];
}
Formatted version. Note that the indentation is missing.
- Code: Select all
function someFunc() {
static $arr = [
1,
2,
3
];
}