spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
568 stars 102 forks source link

Strings are treated as global functions #567

Closed jasonvarga closed 2 years ago

jasonvarga commented 2 years ago

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') and ray('app') when using Laravel, or a silly example: ray('array_map')

Versions

To Reproduce Steps to reproduce the behavior:

  1. Use ray('array_map') in your code (or ray('config') more realistically, in a Laravel app)

Expected behavior The string "array_map" or "config" should appear in Ray.

Desktop: