Skip to content

Commit

Permalink
fix ignition not working when there is no argv
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Mar 4, 2021
1 parent 5e9ef38 commit e957d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ignition` will be documented in this file

## 2.5.13 - 2021-03-03

- fix ignition not working when there is no argv

## 2.5.13 - 2021-02-16

- remove custom grouping
Expand Down
2 changes: 1 addition & 1 deletion src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function boot()
__DIR__.'/../config/ignition.php' => config_path('ignition.php'),
], 'ignition-config');

if (['artisan', 'tinker'] === $_SERVER['argv']) {
if (isset($_SERVER['argv']) && ['artisan', 'tinker'] === $_SERVER['argv']) {
Api::sendReportsInBatches(false);
}
}
Expand Down

0 comments on commit e957d06

Please sign in to comment.