1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/docs/running_psalm/issues/PropertyNotSetInConstructor.md

15 lines
250 B
Markdown
Raw Normal View History

2020-03-19 17:32:49 +01:00
# PropertyNotSetInConstructor
Emitted when a non-null property without a default value is declared but not set in the classs constructor
```php
2020-03-21 00:13:46 +01:00
<?php
2020-03-19 17:32:49 +01:00
class A {
/** @var string */
public $foo;
public function __construct() {}
}
```