diff --git a/src/File/Rename.php b/src/File/Rename.php index b32d5e82..8faf82b8 100644 --- a/src/File/Rename.php +++ b/src/File/Rename.php @@ -36,8 +36,6 @@ class Rename extends Filter\AbstractFilter * 'overwrite' => Shall existing files be overwritten ? * * @param string|array|Traversable $options Target file or directory to be renamed - * @param string $target Source filename or directory (deprecated) - * @param bool $overwrite Should existing files be overwritten (deprecated) * @throws Exception\InvalidArgumentException */ public function __construct($options) @@ -50,18 +48,6 @@ public function __construct($options) throw new Exception\InvalidArgumentException('Invalid options argument provided to filter'); } - if (1 < func_num_args()) { - $argv = func_get_args(); - array_shift($argv); - $source = array_shift($argv); - $overwrite = false; - if (!empty($argv)) { - $overwrite = array_shift($argv); - } - $options['source'] = $source; - $options['overwrite'] = $overwrite; - } - $this->setFile($options); }