Skip to content

Commit 4008018

Browse files
authored
Fix epic's states (#697)
1 parent 7e7634b commit 4008018

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Api/GroupsEpics.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ class GroupsEpics extends AbstractApi
1919
/**
2020
* @var string
2121
*/
22-
public const STATE_ACTIVE = 'active';
22+
public const STATE_ALL = 'all';
23+
24+
/**
25+
* @var string
26+
*/
27+
public const STATE_OPENED = 'opened';
2328

2429
/**
2530
* @var string
@@ -47,7 +52,7 @@ public function all($group_id, array $parameters = [])
4752
})
4853
;
4954
$resolver->setDefined('state')
50-
->setAllowedValues('state', [self::STATE_ACTIVE, self::STATE_CLOSED])
55+
->setAllowedValues('state', [self::STATE_ALL, self::STATE_OPENED, self::STATE_CLOSED])
5156
;
5257
$resolver->setDefined('search');
5358

0 commit comments

Comments
 (0)