Skip to content

Conversation

@JJCLane
Copy link
Contributor

@JJCLane JJCLane commented Nov 6, 2025

I originally thought this was a goap/framework issue and so raised an issue there as that's what the stack trace indicated.

It turns out that the problem is caused by AspectMock not checking for the never return type before inserting a return statement. I'm not sure what the appropriate logic should be, but removing the return statement entirely fixes the fatal error.

I also took care of some house keeping removing the extra check for getReturnType now that PHP 5 is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant