Skip to content

Commit a134fba

Browse files
committed
fix: breaking version compatiy, revert deleted methods
1 parent 7860068 commit a134fba

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

Diff for: src/Flags.php

+47
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,53 @@ public static function parseString(string $string, array $config = []): array
268268
return self::parseArgv($flags, $config);
269269
}
270270

271+
/**
272+
* @param array $argv
273+
*
274+
* @return array
275+
* @deprecated
276+
*/
277+
public static function simpleParseArgv(array $argv): array
278+
{
279+
return $argv;
280+
}
281+
282+
/**
283+
* check next is option value
284+
*
285+
* @param mixed $val
286+
*
287+
* @return bool
288+
* @deprecated please use FlagHelper::isOptionValue
289+
*/
290+
public static function nextIsValue($val): bool
291+
{
292+
return FlagHelper::isOptionValue($val);
293+
}
294+
295+
/**
296+
* @param string $name
297+
*
298+
* @return bool
299+
* @deprecated please use FlagHelper::isValidName
300+
*/
301+
public static function isValidArgName(string $name): bool
302+
{
303+
return FlagHelper::isValidName($name);
304+
}
305+
306+
/**
307+
* @param string|bool $val
308+
* @param bool $enable
309+
*
310+
* @return bool|int|mixed
311+
* @deprecated please use FlagHelper::filterBool
312+
*/
313+
public static function filterBool($val, bool $enable = true)
314+
{
315+
return FlagHelper::filterBool($val);
316+
}
317+
271318
/**
272319
* Escapes a token through escape shell arg if it contains unsafe chars.
273320
*

0 commit comments

Comments
 (0)