1 | <?php |
||
20 | class SearchTest extends TestCaseAbstract |
||
21 | { |
||
22 | /** |
||
23 | * setUp |
||
24 | * |
||
25 | * @since 4.0.0 |
||
26 | */ |
||
27 | |||
28 | public function setUp() : void |
||
91 | |||
92 | /** |
||
93 | * tearDown |
||
94 | * |
||
95 | * @since 4.0.0 |
||
96 | */ |
||
97 | |||
98 | public function tearDown() : void |
||
102 | |||
103 | /** |
||
104 | * testGetByTable |
||
105 | * |
||
106 | * @since 4.0.0 |
||
107 | * |
||
108 | * @param string $table |
||
109 | * @param string $search |
||
110 | * @param string $language |
||
111 | * @param array $expectArray |
||
112 | * |
||
113 | * @dataProvider providerAutoloader |
||
114 | */ |
||
115 | |||
116 | public function testGetByTable(string $table = null, string $search = null, string $language = null, array $expectArray = []) : void |
||
138 | |||
139 | /** |
||
140 | * testCreateColumnArray |
||
141 | * |
||
142 | * @since 4.0.0 |
||
143 | * |
||
144 | * @param string $table |
||
145 | * @param array $expectArray |
||
146 | * |
||
147 | * @dataProvider providerAutoloader |
||
148 | */ |
||
149 | |||
150 | public function testCreateColumnArray(string $table = null, array $expectArray = []) : void |
||
167 | |||
168 | |||
169 | /** |
||
170 | * testCreateLikeArray |
||
171 | * |
||
172 | * @since 4.0.0 |
||
173 | * |
||
174 | * @param string $table |
||
175 | * @param string $search |
||
176 | * @param array $expectArray |
||
177 | * |
||
178 | * @dataProvider providerAutoloader |
||
179 | */ |
||
180 | |||
181 | public function testCreateLikeArray(string $table = null, string $search = null, array $expectArray = []) : void |
||
199 | } |
||
200 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.