1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00

add default value

This commit is contained in:
Sergey Gelunenko 2016-09-28 15:15:12 +03:00
parent 76701d6918
commit 058ef8b563
4 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ class BlockingDriver implements Driver {
/**
* {@inheritdoc}
*/
public function mkdir($path, $mode = 0644, $recursive) {
public function mkdir($path, $mode = 0644, $recursive = false) {
return new Success((bool) @\mkdir($path, $mode, $recursive));
}

View File

@ -132,7 +132,7 @@ interface Driver {
* @param bool $recursive
* @return \Amp\Promise
*/
public function mkdir($path, $mode = 0644, $recursive);
public function mkdir($path, $mode = 0644, $recursive = false);
/**
* Delete a directory

View File

@ -356,7 +356,7 @@ class EioDriver implements Driver {
/**
* {@inheritdoc}
*/
public function mkdir($path, $mode = 0644, $recursive) {
public function mkdir($path, $mode = 0644, $recursive = false) {
\call_user_func($this->incrementor, 1);
$promisor = new Deferred;
$priority = \EIO_PRI_DEFAULT;

View File

@ -300,7 +300,7 @@ class UvDriver implements Driver {
/**
* {@inheritdoc}
*/
public function mkdir($path, $mode = 0644, $recursive) {
public function mkdir($path, $mode = 0644, $recursive = false) {
$this->reactor->addRef();
$promisor = new Deferred;