Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b706e8e

Browse files
committed
[Filter] Remove deprecated code
17 parents 32497e5 + 79eb7d0 + 8cc5d58 + 869ab1c + 436e613 + ab7d56c + 6dbeef6 + 84670b1 + cccfba9 + 2717653 + b4dd364 + 460818e + b5ac15d + 2d218aa + 046d669 + 5597f80 + 98dc299 commit b706e8e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/File/Rename.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class Rename extends Filter\AbstractFilter
4848
* 'overwrite' => Shall existing files be overwritten ?
4949
*
5050
* @param string|array|Traversable $options Target file or directory to be renamed
51-
* @param string $target Source filename or directory (deprecated)
52-
* @param bool $overwrite Should existing files be overwritten (deprecated)
5351
* @throws Exception\InvalidArgumentException
5452
*/
5553
public function __construct($options)
@@ -62,18 +60,6 @@ public function __construct($options)
6260
throw new Exception\InvalidArgumentException('Invalid options argument provided to filter');
6361
}
6462

65-
if (1 < func_num_args()) {
66-
$argv = func_get_args();
67-
array_shift($argv);
68-
$source = array_shift($argv);
69-
$overwrite = false;
70-
if (!empty($argv)) {
71-
$overwrite = array_shift($argv);
72-
}
73-
$options['source'] = $source;
74-
$options['overwrite'] = $overwrite;
75-
}
76-
7763
$this->setFile($options);
7864
}
7965

0 commit comments

Comments
 (0)