doctrine / doctrine/coding-standard
class and properties with no spaces between them seem to be allowed
Open
- Dominant language
- PHP
- Stars
- 320
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
While working on applying this standard on `doctrine/orm`, we found with @SenseException that the following will not raise any error:
```php
// declarations
class Foo
{
/** @var int */
private $bar;
/** @var int */
private $baz;
}
class FooBar
{
}
```
We would expect errors about the lack of space between property declarations
and class declarations. Does anyone know of a sniff that we could integrate to
`doctrine/coding-standard` for this? @kukulich maybe?
Note that in PHP 7.4, I personally would be ok with a lack of space between property declarations when they fit on one line.
Contributor guide
Assessment
This issue has not been assessed yet.