| 1 | <?php |
||
| 19 | class SubSpec extends Spec |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Subject Filter |
||
| 23 | * |
||
| 24 | * @var SubjectFitler |
||
| 25 | * |
||
| 26 | * @access protected |
||
| 27 | */ |
||
| 28 | protected $filter; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * __construct |
||
| 32 | * |
||
| 33 | * @param SubjectFilter $filter The filter to apply to the sub subject |
||
| 34 | * |
||
| 35 | * @access public |
||
| 36 | */ |
||
| 37 | public function __construct(SubjectFilter $filter) |
||
| 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) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get the Subject filter |
||
| 60 | * |
||
| 61 | * @return SubjectFilter |
||
| 62 | * |
||
| 63 | * @access public |
||
| 64 | */ |
||
| 65 | public function filter() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * Returns the default failure message for this rule specification. |
||
| 72 | * |
||
| 73 | * @return array |
||
| 74 | * |
||
| 75 | * @access protected |
||
| 76 | */ |
||
| 77 | protected function getDefaultMessage() |
||
| 83 | } |
||
| 84 |
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..