-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
When checking for directories with is_dir() and the directory exists, the following notice is thrown:
PHP Notice: Undefined offset: 0 in <SOME_PATH>/vendor/twistor/flysystem-stream-wrapper/src/Flysystem/Plugin/Stat.php on line 157
The following code should trigger the error:
<?php
use League\Flysystem\Filesystem;
use League\Flysystem\Memory\MemoryAdapter;
use Twistor\FlysystemStreamWrapper;
require_once 'vendor/autoload.php';
$filesystem = new Filesystem(new MemoryAdapter());
FlysystemStreamWrapper::register('test', $filesystem);
$directory = 'test:///test';
var_dump(is_dir($directory)); // Works as expected, no notice
mkdir($directory);
var_dump(is_dir($directory)); // Works as expected, but a notice is thrownhexusLewiscowles1986
Metadata
Metadata
Assignees
Labels
No labels