1 | <?php |
||
5 | class Select extends Filter |
||
6 | { |
||
7 | /** |
||
8 | * @var array |
||
9 | */ |
||
10 | protected $options = []; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $emptyValue = '--'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $operator = FilterOperator::OPERATOR_EQ; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | protected $autoSubmit = true; |
||
26 | |||
27 | /** |
||
28 | * @param array $options |
||
29 | */ |
||
30 | public function setOptions(array $options) |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | public function getOptions() |
||
42 | |||
43 | /** |
||
44 | * @return boolean |
||
45 | */ |
||
46 | public function isAutoSubmit(): bool |
||
50 | |||
51 | /** |
||
52 | * @param boolean $flag |
||
53 | */ |
||
54 | public function setAutoSubmit(bool $flag) |
||
58 | |||
59 | /** |
||
60 | * @return \Illuminate\Support\HtmlString |
||
61 | */ |
||
62 | public function render() |
||
69 | } |
||
70 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.