It seems like $filter of type object<Aura\Filter\SubjectFilter> is incompatible with the declared type object<Aura\Filter\Spec\SubjectFitler> of property $filter.
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...
40
}
41
42
/**
43
* Apply sub filter to sub subject
44
*
45
* @param mixed $subject parent subject
46
*
47
* @return bool
48
*
49
* @access public
50
*/
51
public function __invoke($subject)
52
{
53
$field = $this->field;
54
$values =& $subject->$field;
55
return $this->filter->apply($values);
56
}
57
58
/**
59
* Get the Subject filter
60
*
61
* @return SubjectFilter
62
*
63
* @access public
64
*/
65
public function filter()
66
{
67
return $this->filter;
68
}
69
70
/**
71
* Returns the default failure message for this rule specification.
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..