Signed-off-by: Joas Schilling <coding@schilljs.com>
parent::__construct(
null,
- ''
+ ''
);
}
protected function getRoot() {
- if (is_null($this->root)) {
+ if ($this->root === '') {
$absoluteRoot = $this->sourceRootInfo->getPath();
// the sourceRootInfo path is the absolute path of the folder in the "real" storage
protected function formatCacheEntry($entry, $path = null) {
if (is_null($path)) {
- $path = isset($entry['path']) ? $entry['path'] : '';
+ $path = $entry['path'] ?? '';
$entry['path'] = $this->getJailedPath($path);
} else {
$entry['path'] = $path;