Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DivisionByZeroError: Division by zero #19

Open
sentry-io bot opened this issue Jan 20, 2025 · 0 comments
Open

DivisionByZeroError: Division by zero #19

sentry-io bot opened this issue Jan 20, 2025 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 20, 2025

Sentry Issue: CREW-TIMETRACKING-API-9Z

DivisionByZeroError: Division by zero
  File "/app/Services/AbsenceService.php", line 470, in App\Services\AbsenceService::getAbsenceCount
    return round($absence->start->floatDiffInHours($absence->stop) / $hoursPerDay, 2);
  File "/app/Services/AbsenceService.php", line 370, in App\Services\AbsenceService::getDefaultAbsencesByTypeAndYear
    $absenceCount = $this->getAbsenceCount($absence, $hoursPerDay, $absence->start->year);
  File "/app/Http/Controllers/Api/v1/Employee/AbsencesOverviewController.php", line 24, in App\Http\Controllers\Api\v1\Employee\AbsencesOverviewController::overview
    $this->absenceService->getDefaultAbsencesByTypeAndYear($employee)
  File "/app/Http/Middleware/SeparateWithParam.php", line 12, in App\Http\Middleware\SeparateWithParam::handle
    return $next($request);
  File "/public/index.php", line 51
    $response = $kernel->handle(
...
(46 additional frame(s) were not displayed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

0 participants