Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
In PHP 7.3, calling `compact` on variables that aren't declared will throw an exception:

```
[2018-12-25 17:17:23] production.ERROR: ErrorException: compact(): Undefined variable: emails in /app/Http/Controllers/Incomes/Customers.php:32
```
  • Loading branch information
drbyte committed Dec 25, 2018
1 parent 1ec85c8 commit ccef7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Incomes/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function index()
{
$customers = Customer::collect();

return view('incomes.customers.index', compact('customers', 'emails'));
return view('incomes.customers.index', compact('customers'));
}

/**
Expand Down

0 comments on commit ccef7d6

Please sign in to comment.