twistor / flysystem-stream-wrapper

Provides the ability to register Flysystem filesystems as stream wrappers.
MIT License
58 stars 19 forks source link

fix undefined index in stat metadata #15

Open kor3k opened 5 years ago

kor3k commented 5 years ago

fix undefined index in stat metadata #12

twistor commented 5 years ago

What key is not defined, and what adapter are you using?

0b10011 commented 5 years ago

@twistor see #12:

PHP Notice: Undefined offset: 0 in /vendor/twistor/flysystem-stream-wrapper/src/Flysystem/Plugin/Stat.php on line 157

kor3k commented 5 years ago

@twistor yes, it's described here https://github.com/twistor/flysystem-stream-wrapper/issues/12#issuecomment-526179427

lsv commented 4 years ago

@twistor

It would be awesome if this could get merged. It actually fixes if you are using memory adapter

Renrhaf commented 4 years ago

Hello! I would need this patch too for my API platform backend.

hexus commented 4 years ago

I too need this fixed, please merge and release 🙏

DieterHolvoet commented 1 year ago

I just encountered this error as well, having the current PR applied as patch:

Warning: Undefined array key "type" in Twistor\Flysystem\Plugin\Stat->mergeMeta() (line 157 of vendor/twistor/flysystem-stream-wrapper/src/Flysystem/Plugin/Stat.php)