diff options
| author | 2022-01-01 13:54:36 +0100 | |
|---|---|---|
| committer | 2022-01-01 13:54:36 +0100 | |
| commit | a791388ce4b7b5c03be109418336d41992d93b88 (patch) | |
| tree | e4d0b697887203c1cbd2f19345f52c711354c299 /lib/lib_rss.php | |
| parent | 3f6aa42b817145a3b00f4d615f87728b55c4413a (diff) | |
Avoid func_get_args (#4108)
Use variadic syntax instead https://php.net/manual/functions.arguments#functions.variable-arg-list
And avoid dynamic functions names when possible to more easily identify calls and unused functions.
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 93463bace..2627773b6 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -18,11 +18,10 @@ if (COPY_SYSLOG_TO_STDERR) { /** * Build a directory path by concatenating a list of directory names. * - * @param $path_parts a list of directory names + * @param array<string> $path_parts a list of directory names * @return string corresponding to the final pathname */ -function join_path() { - $path_parts = func_get_args(); +function join_path(...$path_parts) { return join(DIRECTORY_SEPARATOR, $path_parts); } |
