Skip to content

Commit daa1bd1

Browse files
committed
Make unit tests complient with PHP 7.4.
1 parent 6cde0aa commit daa1bd1

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎tests/PHPStan/Analyser/nsrt/filter-var-returns-non-empty-string.php‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -167,40 +167,40 @@ public function run(
167167
$return = filter_var('0x10', FILTER_VALIDATE_INT, FILTER_FLAG_ALLOW_HEX);
168168
assertType('16', $return);
169169

170-
$return = filter_var(true, options: FILTER_FLAG_EMPTY_STRING_NULL);
170+
$return = filter_var(true, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
171171
assertType("'1'", $return);
172172

173-
$return = filter_var(false, options: FILTER_FLAG_EMPTY_STRING_NULL);
173+
$return = filter_var(false, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
174174
assertType('null', $return);
175175

176-
$return = filter_var($bool, options: FILTER_FLAG_EMPTY_STRING_NULL);
176+
$return = filter_var($bool, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
177177
assertType("'1'|null", $return);
178178

179-
$return = filter_var(0.0, options: FILTER_FLAG_EMPTY_STRING_NULL);
179+
$return = filter_var(0.0, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
180180
assertType("'-0'|'0'", $return);
181181

182-
$return = filter_var(0, options: FILTER_FLAG_EMPTY_STRING_NULL);
182+
$return = filter_var(0, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
183183
assertType("'0'", $return);
184184

185-
$return = filter_var(null, options: FILTER_FLAG_EMPTY_STRING_NULL);
185+
$return = filter_var(null, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
186186
assertType('null', $return);
187187

188-
$return = filter_var($nullable_string, options: FILTER_FLAG_EMPTY_STRING_NULL);
188+
$return = filter_var($nullable_string, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
189189
assertType('non-empty-string|null', $return);
190190

191-
$return = filter_var($nullable_non_empty_string, options: FILTER_FLAG_EMPTY_STRING_NULL);
191+
$return = filter_var($nullable_non_empty_string, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
192192
assertType('non-empty-string|null', $return);
193193

194-
$return = filter_var($object, options: FILTER_FLAG_EMPTY_STRING_NULL);
194+
$return = filter_var($object, FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
195195
assertType('false', $return);
196196

197-
$return = filter_var($this->anyOf(0.0, true), options: FILTER_FLAG_EMPTY_STRING_NULL);
197+
$return = filter_var($this->anyOf(0.0, true), FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
198198
assertType("'-0'|'0'|'1'", $return);
199199

200-
$return = filter_var($this->anyOf($bool, $maybe_empty_string), options: FILTER_FLAG_EMPTY_STRING_NULL);
200+
$return = filter_var($this->anyOf($bool, $maybe_empty_string), FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
201201
assertType("non-empty-string|null", $return);
202202

203-
$return = filter_var($this->anyOf(0, null), options: FILTER_FLAG_EMPTY_STRING_NULL);
203+
$return = filter_var($this->anyOf(0, null), FILTER_DEFAULT, FILTER_FLAG_EMPTY_STRING_NULL);
204204
assertType("'0'|null", $return);
205205
}
206206

0 commit comments

Comments
 (0)