Skip to content

Commit

Permalink
🐛 ensure config values are cast to int for Carbon
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu committed Dec 31, 2024
1 parent 5c45113 commit 3b184f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/trwl.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
'time_window' => [
# time windows before and after a journey to get points
'good_enough' => [
'before' => env('GOOD_ENOUGH_POINTS_MIN_BEFORE', 60),
'after' => env('GOOD_ENOUGH_POINTS_MIN_AFTER', 60),
'before' => (int)env('GOOD_ENOUGH_POINTS_MIN_BEFORE', 60),
'after' => (int)env('GOOD_ENOUGH_POINTS_MIN_AFTER', 60),
],
'in_time' => [
'before' => env('FULL_POINTS_MIN_BEFORE', 20),
'after' => env('FULL_POINTS_MIN_AFTER', 10),
'before' => (int)env('FULL_POINTS_MIN_BEFORE', 20),
'after' => (int)env('FULL_POINTS_MIN_AFTER', 10),
],
],
'train' => [
Expand Down

0 comments on commit 3b184f9

Please sign in to comment.