Skip to content

Make sure controller action is string before using strpos #992

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

Merged
merged 1 commit into from
Dec 7, 2019
Merged

Make sure controller action is string before using strpos #992

merged 1 commit into from
Dec 7, 2019

Conversation

matsava
Copy link
Contributor

@matsava matsava commented Dec 6, 2019

This fixes a problem with Livewire.

In a few words, when using livewire you can set a route to map to a specific Livewire component (docs).

When doing so, debugbar failed to load in that particular page with an error message in the log file

local.ERROR: Debugbar exception: strpos() expects parameter 1 to be string, object given

No stack trace or anything. (This might be a separate PR someday)

This PR makes sure the route action is a string before using the strpos function.

Closes livewire/livewire#217

@barryvdh barryvdh merged commit 35638e4 into barryvdh:master Dec 7, 2019
@matsava matsava deleted the patch-1 branch December 7, 2019 19:19
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.

Debugbar conflict
2 participants