MIR0232
PossiblyNullPropertyAssignmentValue
A value assigned to a property may be null, which the property’s type doesn’t accept.
Example
Section titled “Example”<?phpclass Counter { public int $n = 0;
public function set(?int $value): void { $this->n = $value; }}How to fix
Section titled “How to fix”Check for null before assigning, or make the property nullable.
