mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
add docstring
This commit is contained in:
parent
fe09d8c03e
commit
b0b031afb2
@ -246,10 +246,10 @@ function clean_spaces(string $string): string
|
||||
}
|
||||
|
||||
/**
|
||||
* Deduplicate flags in a string.
|
||||
* Deduplicate flags in a string. Only the last occurence of each flag will be kept.
|
||||
* E.g. `-lintl -lstdc++ -lphp -lstdc++` becomes `-lintl -lphp -lstdc++`
|
||||
*
|
||||
* @param string $flags The string containing flags to deduplicate. Only the last occurence of each flag will be kept.
|
||||
* E.g. `-lintl -lstdc++ -lphp -lstdc++` becomes `-lintl -lphp -lstdc++`
|
||||
* @param string $flags the string containing flags to deduplicate
|
||||
* @return string the deduplicated string with no duplicate flags
|
||||
*/
|
||||
function deduplicate_flags(string $flags): string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user