Static array variables are not correctly formatted.
2 posts
• Page 1 of 1
Static array variables are not correctly formatted.
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
];
}
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
Re: Static array variables are not correctly formatted.
Hi Dan,
Thanks for posting this bug.
We've fixed this and it will be available in the next update.
Thank you,
Thanks for posting this bug.
We've fixed this and it will be available in the next update.
Thank you,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 43 guests