flat icon indicating copy to clipboard operation
flat copied to clipboard

Fatal: SplFileInfo->_bad_state_ex()

Open MarcelHekkert opened this issue 7 years ago • 3 comments

Hey Matt,

I get this Fatal error when a collection is empty using PHP Version 7.0.6.

Fatal error: Uncaught LogicException: The parent constructor was not called: the object is in an invalid state in \src\Flat\Storage\FilesystemIterator.php:45
Stack trace: #0 src\Flat\Storage\FilesystemIterator.php(45): SplFileInfo->_bad_state_ex()
Mattbit\Flat\Collection->find() #5 {main} thrown in \src\Flat\Storage\FilesystemIterator.php on line 45

MarcelHekkert avatar Jan 22 '18 17:01 MarcelHekkert

Whoops, my fault! I will look into it soon.

mattbit avatar Jan 23 '18 09:01 mattbit

Thanks! :)

MarcelHekkert avatar Jan 24 '18 20:01 MarcelHekkert

Hi @MarcelHekkert, could you please send me the exact code that produces the error?

mattbit avatar Feb 11 '18 16:02 mattbit