add docstring

This commit is contained in:
henderkes 2025-09-30 00:17:17 +02:00
parent fe09d8c03e
commit b0b031afb2

View File

@ -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. * @param string $flags the string containing flags to deduplicate
* E.g. `-lintl -lstdc++ -lphp -lstdc++` becomes `-lintl -lphp -lstdc++`
* @return string the deduplicated string with no duplicate flags * @return string the deduplicated string with no duplicate flags
*/ */
function deduplicate_flags(string $flags): string function deduplicate_flags(string $flags): string