![]() ![]() We’re trying to make sure your code style looks exactly how you want it to, so let us know what you think – or if we’re missing anything. The proposed PSR-12 standard does say that these declarations should have no whitespace in them, but if your own coding style differs, you can enforce the spaces using Code Style | PHP | Spaces | Around Operators | Assignment in declare statement. ![]() You can find the setting under Code Style | PHP | Blank Lines | Before namespace. In writing this very blog post we also realised that this won’t solve the problem for everyone because of PHP 7’s `declare(strict_types=1)` declaration being the first line in a file – we’ve opened a ticket for that so look out for it in the future.Īnd speaking about PHP 7, there’s a new feature to enforce spaces around the equals sign in a `declare(strict_types=1)` declaration. Something that’s been annoying me slightly is PhpStorm not letting me enforce a new line between `
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |