Skip to content

Commit 8c7578e

Browse files
committed
Consistently use $from/$to
1 parent ae2e0ed commit 8c7578e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ function unregister_tick_function(callable $callback): void {}
357357

358358
function is_uploaded_file(string $filename): bool {}
359359

360-
function move_uploaded_file(string $filename, string $new_filename): bool {}
360+
function move_uploaded_file(string $from, string $to): bool {}
361361

362362
function parse_ini_file(string $filename, bool $process_sections = false, int $scanner_mode = INI_SCANNER_NORMAL): array|false {}
363363

@@ -835,10 +835,10 @@ function fputs($stream, string $string, ?int $max_length = null): int|false {}
835835
function mkdir(string $directory, int $mode = 0777, bool $recursive = false, $context = null): bool {}
836836

837837
/** @param resource|null $context */
838-
function rename(string $old_name, string $new_name, $context = null): bool {}
838+
function rename(string $from, string $to, $context = null): bool {}
839839

840840
/** @param resource|null $context */
841-
function copy(string $source, string $dest, $context = null): bool {}
841+
function copy(string $from, string $to, $context = null): bool {}
842842

843843
function tempnam(string $directory, string $prefix): string|false {}
844844

@@ -1290,10 +1290,10 @@ function stream_socket_pair(int $domain, int $type, int $protocol): array|false
12901290
#endif
12911291

12921292
/**
1293-
* @param resource $source
1294-
* @param resource $dest
1293+
* @param resource $from
1294+
* @param resource $to
12951295
*/
1296-
function stream_copy_to_stream($source, $dest, ?int $max_length = null, int $offset = 0): int|false {}
1296+
function stream_copy_to_stream($from, $to, ?int $max_length = null, int $offset = 0): int|false {}
12971297

12981298
/** @param resource $stream */
12991299
function stream_get_contents($stream, ?int $max_length = null, int $offset = -1): string|false {}

0 commit comments

Comments
 (0)