Skip to content

Commit fe080d2

Browse files
committed
type annotations
1 parent d76251a commit fe080d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: resources/lib/UnityGroup.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getPIUID()
6262
*
6363
* @return bool true if yes, false if no
6464
*/
65-
public function exists($ignorecache = false)
65+
public function exists(bool $ignorecache = false): bool
6666
{
6767
if (!$ignorecache) {
6868
$cached_pi_groups = $this->REDIS->getCache("sorted_pi_groups", "");

Diff for: resources/lib/UnityUser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getLDAPGroup()
154154
return $this->LDAP->getGroupEntry($this->uid);
155155
}
156156

157-
public function exists($ignorecache = false)
157+
public function exists(bool $ignorecache = false): bool
158158
{
159159
if (!$ignorecache) {
160160
$cached_users = $this->REDIS->getCache("sorted_users", "");

0 commit comments

Comments
 (0)