Fix syntax mistake

This commit is contained in:
Daniil Gentili 2018-03-04 16:50:21 +00:00
parent 9f428b3e4c
commit cd0d617dc1

View File

@ -38,7 +38,7 @@ class Stream
$opt = stream_context_get_options($this->context);
if (!is_array($opt[self::WRAPPER_NAME]) ||
!isset($opt[self::WRAPPER_NAME]['handler']) ||
!($opt[self::WRAPPER_NAME]['handler'] instanceof Handler)
!($opt[self::WRAPPER_NAME]['handler'] instanceof Handler) ||
!isset($opt[self::WRAPPER_NAME]['stream_id']) ||
!is_integer($opt[self::WRAPPER_NAME]['stream_id'])) return false;
$this->_handler = $opt[self::WRAPPER_NAME]['handler'];
@ -54,4 +54,4 @@ class Stream
public function stream_lock($mode) {
}
}
}