Simon Podlipsky
Simon Podlipsky
We have created `ValidVariableNameSniff` sniff that takes regex pattern to check for variables names, camelCase is default regex value. https://github.com/cdn77/coding-standard/releases/tag/6.0.0
I see, #3278 is pretty same.
```php public function __construct( protected CompanyRepository $companyRepository, protected ColorService $colorService // phpcs:ignore Squiz.WhiteSpace.ScopeClosingBrace ) {} ```
@gsherwood Hi, just rebased and resolved conflicts for the second time. Should I pursue this?
@BackEndTea are you planning to pursue it?
Since we can't access the property before we know it's initialized I see only this way ```php class X { public ?string $a; } function isInit(object $object, string $prop) :...
It's a long time since I opened the FR and I did not find the use case I needed it for. But yes, one can't use `isset()`, the only way...
Sometimes my error messages are 1) heavy to compute 2) touch object properties that are not initialised and are not needed to be initialised except for the error message so...
@BackEndTea Hi, is there a will to add lazy messages?
I've encountered the same issue. The problem is that it parses only arrays while `getSerializableData()` return `stdClass`es.