Closed Whalehunter closed 3 years ago
@Whalehunter thanks for using this package. I am not familiar with the PsySH library but the code your are using should indeed be working.
Does the issue exists if you remove the PsySH specific code 🤔. If the answer is no then most likely it is a PsySH issue.
Maybe try to reproduce the issue with as minimum as possible code to create a ticket on the PsySH issue tracker ... My 2 cents.
@Whalehunter using your code without the PsySH instructions it works as intended. I will close this issue as the described behavior is not related to this package but to a third party tool
Thanks for the quick reply! Indeed the code works as expected without PsySH in between. Thanks for the time and suggestion to report this issue to the PsySH maintainers, for some reason I hadn't thought of it as my first move.
Bug Report
Hello, maybe this is an error that should be reported to PsySH or PHP, but I have a problem when I'm trying to do some interactive code introspection with this library and PsySH.
Summary
When dropping into the
eval(\Psy\sh());
after fetching some element from aResultSet
, the LimitIterator instance does not work anymore, with a PHP Fatal Error as a result:LogicException with message 'The object is in an invalid state as the parent constructor was not called'
Standalone code, or other way to reproduce the problem
Expected result
It should not crash with a LogicException, since the
fetchOne()
-method explicitly calls theLimitIterator
constructor.Actual result
Example fatal error: