Commit 35e5c4d
committed
fix: handle SerializableClosure in action column display
Routes using Laravel's SerializableClosure (e.g., the storage/{path}
route from FilesystemServiceProvider) are not instances of \Closure,
so the instanceof check falls through and the serialized closure object
is displayed as a string.
Use is_string() to check whether the action is a controller reference;
anything else (Closure, SerializableClosure, etc.) displays as "Closure".1 parent 557095c commit 35e5c4d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments