Open SimonJnsson opened 6 days ago
Hi @SimonJnsson Yes, you’re right. However, in my case, I frequently encounter methods without return types. This is why I switched the database to SQLite and invoked methods to retrieve the return types.
Hey @recca0120, that makes a lot of sense. Maybe we can use the current approach as a fallback if the method has no return type specified?
Right now, all methods on a given model is invoked, potentially causing issues. This PR checks if the return type of the method is a subclass og EloquentRelation, before attempting to invoke the function, avoiding calls to methods that are not relations.