Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to protected properties $response, $errorType and $errorMessage in CallWebhookJob #143

Merged
merged 2 commits into from
Mar 17, 2023
Merged

Change to protected properties $response, $errorType and $errorMessage in CallWebhookJob #143

merged 2 commits into from
Mar 17, 2023

Conversation

Kazuto
Copy link
Contributor

@Kazuto Kazuto commented Mar 16, 2023

In PR #135 the option was added to extend or override the CallWebhookJob by changing the value of the configuration key webhook_job to use an extending class.

The idea behind this was to give user the ability to let the job fail on certain criterias like response codes or custom behaviour by overriding the shouldBeRemovedFromQueue() method.

Today I've noticed that it slipped my mind that the response, error type and error message are not available to the extending class because the parent class has the properties set to private.

This PR changes them to protected.

@freekmurze freekmurze merged commit 9d4506f into spatie:main Mar 17, 2023
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants