It seems like $voters of type array<integer,array<inte...issionVoterInterface>>> is incompatible with the declared type array<integer,object<Cul...missionVoterInterface>> of property $voters.
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...
21
}
22
23
/**
24
* @param Permission $permission
25
* @param StringLiteral $offerId
26
* @param StringLiteral $userId
27
* @return bool
28
*/
29
public function isAllowed(
30
Permission $permission,
31
StringLiteral $offerId,
32
StringLiteral $userId
33
) {
34
foreach ($this->voters as $voter) {
35
if ($voter->isAllowed($permission, $offerId, $userId)) {
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..