Commit 351352e9 authored by alexpott's avatar alexpott

Issue #2279213 by neclimdul, sun | donquixote: Fixed...

Issue #2279213 by neclimdul, sun | donquixote: Fixed KernelTestBase::unregisterStreamWrapper() is called once with insufficient arguments.
parent e5d8fced
......@@ -490,7 +490,7 @@ protected function disableModules(array $modules) {
*/
protected function registerStreamWrapper($scheme, $class, $type = STREAM_WRAPPERS_LOCAL_NORMAL) {
if (isset($this->streamWrappers[$scheme])) {
$this->unregisterStreamWrapper($scheme);
$this->unregisterStreamWrapper($scheme, $this->streamWrappers[$scheme]);
}
$this->streamWrappers[$scheme] = $type;
if (($type & STREAM_WRAPPERS_LOCAL) == STREAM_WRAPPERS_LOCAL) {
......
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