Closed jasonvarga closed 2 years ago
Describe the bug
When I try to dump a string like ray('here') it works fine.
ray('here')
When you use a string that resolves to a global function, it tries to run it.
For example, ray('config') and ray('app') when using Laravel, or a silly example: ray('array_map')
ray('config')
ray('app')
ray('array_map')
Versions
To Reproduce Steps to reproduce the behavior:
Expected behavior The string "array_map" or "config" should appear in Ray.
"array_map"
"config"
Desktop:
Version: 11.6
Additional context It's happening right here: https://github.com/spatie/ray/blob/a051931643fbe1e4d57f70108edf3230e8494d89/src/Ray.php#L601-L606
Describe the bug
When I try to dump a string like
ray('here')
it works fine.When you use a string that resolves to a global function, it tries to run it.
For example,
ray('config')
andray('app')
when using Laravel, or a silly example:ray('array_map')
Versions
To Reproduce Steps to reproduce the behavior:
ray('array_map')
in your code (orray('config')
more realistically, in a Laravel app)Expected behavior The string
"array_map"
or"config"
should appear in Ray.Desktop:
Version: 11.6
Additional context It's happening right here: https://github.com/spatie/ray/blob/a051931643fbe1e4d57f70108edf3230e8494d89/src/Ray.php#L601-L606