mirror of
https://github.com/danog/file.git
synced 2024-11-29 20:09:10 +01:00
add default value
This commit is contained in:
parent
76701d6918
commit
058ef8b563
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user