vfsStream::newDirectory() does not return result when called recursively [not a bug, closed]
yyaremenko opened this issue · comments
Yaroslav Yaremenko commented
The result of following code line is never used:
Line 435 in dd9277d
If I understand things correctly the code should look as follows
...
$directory = new vfsStreamDirectory($ownName, $permissions);
return is_string($subDirs) && strlen($subDirs) > 0
? self::newDirectory($subDirs, $permissions)->at($directory)
: $directory;
Yaroslav Yaremenko commented
sorry, looks like this is an expected code behaviour, though it looks a bit confusing on a first sight