Skip to content

Conversation

@AlwinGarside
Copy link
Collaborator

Using BadMethodCallException in this way is not recommended because it may obfuscate underlying issues in the code.

And specifically for me, the call to the non-existent withTrashed() triggers a rare PHP bug which results in a Segmentation fault under very specific and rare circumstances. 🙃

…hod_exists()` condition

Using BadMethodCallException in this way is not recommended because it may obfuscate underlying issues in the code.
@gcphost gcphost merged commit c279c66 into Askedio:master Oct 24, 2024
1 of 13 checks passed
@gcphost
Copy link
Contributor

gcphost commented Oct 24, 2024

Sorry had to revert, the tests failed.

@AlwinGarside
Copy link
Collaborator Author

Ah I see, withThrashed() is forwarded through a magic __call() method. method_exist() wont work in that case. I'll go back to the drawing board.

I'll also make sure to actually properly run tests myself next time. 😅 Sorry 'bout that.

@AlwinGarside
Copy link
Collaborator Author

Here's the proper fix:

#157

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.

2 participants