flysystem-stream-wrapper icon indicating copy to clipboard operation
flysystem-stream-wrapper copied to clipboard

fix undefined index in stat metadata

Open kor3k opened this issue 6 years ago • 7 comments

fix undefined index in stat metadata #12

kor3k avatar Aug 26 '19 01:08 kor3k

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

twistor avatar Nov 04 '19 01:11 twistor

@twistor see #12:

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

0b10011 avatar Nov 04 '19 18:11 0b10011

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

kor3k avatar Nov 04 '19 19:11 kor3k

@twistor

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

lsv avatar Jun 04 '20 17:06 lsv

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

Renrhaf avatar Jun 08 '20 01:06 Renrhaf

I too need this fixed, please merge and release 🙏

hexus avatar Jul 28 '20 13:07 hexus

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)

DieterHolvoet avatar Oct 20 '23 13:10 DieterHolvoet