flat
flat copied to clipboard
Fatal: SplFileInfo->_bad_state_ex()
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
Whoops, my fault! I will look into it soon.
Thanks! :)
Hi @MarcelHekkert, could you please send me the exact code that produces the error?