It seems like $occurrence ?? new \MrPr...ommon\Base\Occurrence() of type object<MrPrompt\ShipmentCommon\Base\Occurrence> is incompatible with the declared type object<MrPrompt\ShipmentCommon\Base\Ocurrence> of property $occurrence.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
95
5
}
96
97
/**
98
* @return the $charging
99
*/
100
1
public function getCharging(): string
101
{
102
1
return $this->charging;
103
}
104
105
/**
106
* @param string $charging
107
*/
108
2
public function setCharging(string $charging)
109
{
110
2
if (!in_array($charging, $this->validTypes)) {
111
1
throw new \InvalidArgumentException(sprintf('Invalid charge type: %s', $charging));
112
}
113
114
1
$this->charging = $charging;
115
1
}
116
117
/**
118
* @return Occurrence
119
*/
120
1
public function getOccurrence(): Occurrence
121
{
122
1
return $this->occurrence;
123
}
124
125
/**
126
* @param Occurrence $occurrence
127
*/
128
1
public function setOccurrence(Occurrence $occurrence)
It seems like $occurrence of type object<MrPrompt\ShipmentCommon\Base\Occurrence> is incompatible with the declared type object<MrPrompt\ShipmentCommon\Base\Ocurrence> of property $occurrence.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..