Skip to content

Commit 32377ce

Browse files
committed
Add return type.
1 parent 8eeee25 commit 32377ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Api/PersonalAccessTokens.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PersonalAccessTokens extends AbstractApi
3131
* @var \DateTimeInterface $last_used_before return tokens used after the given time (inclusive)
3232
* }
3333
*/
34-
public function all(array $parameters = [])
34+
public function all(array $parameters = []): mixed
3535
{
3636
$resolver = $this->createOptionsResolver();
3737
$datetimeNormalizer = function (Options $resolver, \DateTimeInterface $value): string {
@@ -74,17 +74,17 @@ public function all(array $parameters = [])
7474
return $this->get('personal_access_tokens', $resolver->resolve($parameters));
7575
}
7676

77-
public function show(int $id)
77+
public function show(int $id): mixed
7878
{
7979
return $this->get('personal_access_tokens/'.self::encodePath($id));
8080
}
8181

82-
public function current()
82+
public function current(): mixed
8383
{
8484
return $this->get('personal_access_tokens/self');
8585
}
8686

87-
public function rotate(int $id, array $params = [])
87+
public function rotate(int $id, array $params = []): mixed
8888
{
8989
$resolver = $this->createOptionsResolver();
9090
$datetimeNormalizer = function (Options $resolver, \DateTimeInterface $value): string {
@@ -98,7 +98,7 @@ public function rotate(int $id, array $params = [])
9898
return $this->post('personal_access_tokens/'.self::encodePath($id).'/rotate', $resolver->resolve($params));
9999
}
100100

101-
public function rotateCurrent(array $params = [])
101+
public function rotateCurrent(array $params = []): mixed
102102
{
103103
$resolver = $this->createOptionsResolver();
104104
$datetimeNormalizer = function (Options $resolver, \DateTimeInterface $value): string {
@@ -112,12 +112,12 @@ public function rotateCurrent(array $params = [])
112112
return $this->post('personal_access_tokens/self/rotate', $resolver->resolve($params));
113113
}
114114

115-
public function remove(int $id)
115+
public function remove(int $id): mixed
116116
{
117117
return $this->delete('personal_access_tokens/'.self::encodePath($id));
118118
}
119119

120-
public function removeCurrent()
120+
public function removeCurrent(): mixed
121121
{
122122
return $this->delete('personal_access_tokens/self');
123123
}

0 commit comments

Comments
 (0)