Commit c4f4e52a by Qiang Xue

fixed test break.

parent 9e9b3548
...@@ -177,7 +177,7 @@ class BaseFileHelper ...@@ -177,7 +177,7 @@ class BaseFileHelper
$from = $src . DIRECTORY_SEPARATOR . $file; $from = $src . DIRECTORY_SEPARATOR . $file;
$to = $dst . DIRECTORY_SEPARATOR . $file; $to = $dst . DIRECTORY_SEPARATOR . $file;
if (static::filterPath($from, $options)) { if (static::filterPath($from, $options)) {
if (!isset($options['beforeCopy']) || !call_user_func($options['beforeCopy'], $from, $to)) { if (isset($options['beforeCopy']) && !call_user_func($options['beforeCopy'], $from, $to)) {
continue; continue;
} }
if (is_file($from)) { if (is_file($from)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment