You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
I am trying Humbug out for the first time and I am having a small problem with Humbug + Laravel Valet.
Humbug is trying to load the Valet helpers file and the Illuminate/Foundation/helpers.php file at the same time and they both have a function named info(). So I am getting a 'cannot redeclare info() error'. This error isn't present when I run PHPUnit on the same project.
How do I tell Humbug not to load the global Valet files (located in ~/.composer/vendor/laravel/valet/cli/includes/helpers.php)?
I can fix this by wrapping the info function in helpers.php in an "if(!function_exists('info'){})" statement, but that doesn't sound like a long term solution.
The text was updated successfully, but these errors were encountered:
If I remove Laravel Valet, then Humbug works fine.
I just re-installed Valet and I am using 1.1.19. Humbug is 1.0-dev.
I had originally installed humbug globally via composer. I just uninstalled it globally and re-installed it locally in the project and everything works now. I can have Valet and Humbug installed at the same time.
@greenbicycle any application/tool executing your code may have dependencies that can conflict with yours. If you want to avoid that, installing it as a dependency of your project solve that problems.
I am trying Humbug out for the first time and I am having a small problem with Humbug + Laravel Valet.
Humbug is trying to load the Valet helpers file and the Illuminate/Foundation/helpers.php file at the same time and they both have a function named info(). So I am getting a 'cannot redeclare info() error'. This error isn't present when I run PHPUnit on the same project.
How do I tell Humbug not to load the global Valet files (located in ~/.composer/vendor/laravel/valet/cli/includes/helpers.php)?
I can fix this by wrapping the info function in helpers.php in an "if(!function_exists('info'){})" statement, but that doesn't sound like a long term solution.
The text was updated successfully, but these errors were encountered: