Skip to content

Commit

Permalink
Merge pull request #2 from Synalek/master
Browse files Browse the repository at this point in the history
🐛 Fix activity condition
  • Loading branch information
isfonzar authored Oct 8, 2020
2 parents 68478ba + 5beaa11 commit 33b4e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Primitives/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Activity
*/
public function __construct($activity)
{
if (!in_array($activity, $this->activityLevel))
if (!in_array($activity, array_keys($this->activityLevel)))
{
throw new InvalidActivityLevel();
}
Expand Down

0 comments on commit 33b4e0d

Please sign in to comment.