aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 14:06:08 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-07 14:06:08 +0100
commit744a56d862fc9a917e504494b8f7c1ad3551b074 (patch)
treed6c7912f192d17073afd79c7217a62b390ff9a30
parentb20c5a19d89390afed66eccc3f023a1951a68791 (diff)
downloadProtocol-744a56d862fc9a917e504494b8f7c1ad3551b074.zip
Protocol-744a56d862fc9a917e504494b8f7c1ad3551b074.tar.gz
Protocol-744a56d862fc9a917e504494b8f7c1ad3551b074.tar.bz2
chore(php) Fix types.
-rw-r--r--Source/Wrapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Wrapper.php b/Source/Wrapper.php
index 7c4f807..1bac1e1 100644
--- a/Source/Wrapper.php
+++ b/Source/Wrapper.php
@@ -367,7 +367,7 @@ class Wrapper
return mkdir(
static::realPath($path, false),
$mode,
- $options | STREAM_MKDIR_RECURSIVE,
+ (bool) ($options | STREAM_MKDIR_RECURSIVE),
$this->context
);
}
@@ -457,7 +457,7 @@ class Wrapper
/**
* Get stream resource.
*/
- public function getStream(): ?resource
+ public function getStream()
{
return $this->_stream;
}
@@ -465,7 +465,7 @@ class Wrapper
/**
* Get stream name.
*/
- public function getStreamName(): ?resource
+ public function getStreamName(): ?string
{
return $this->_streamName;
}