Skip to content

Commit 014475f

Browse files
committed
fix types
1 parent 4f1c37d commit 014475f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

resources/lib/UnityGroup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function requestGroup(
6969
string $firstname,
7070
string $lastname,
7171
string $email,
72-
UnityOrg $org,
72+
string $org,
7373
bool $send_mail_to_admins,
7474
bool $send_mail = true,
7575
): void {
@@ -344,7 +344,7 @@ public function newUserRequest(
344344
string $firstname,
345345
string $lastname,
346346
string $email,
347-
UnityOrg $org,
347+
string $org,
348348
bool $send_mail = true,
349349
): void {
350350
if ($this->memberExists($new_user)) {
@@ -500,7 +500,7 @@ private function addRequest(
500500
string $firstname,
501501
string $lastname,
502502
string $email,
503-
UnityOrg $org,
503+
string $org,
504504
): void {
505505
$this->SQL->addRequest(
506506
$uid,

resources/lib/UnityMailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct()
8181
}
8282

8383
public function sendMail(
84-
array $recipients,
84+
string $recipients,
8585
?string $template = null,
8686
mixed $data = null,
8787
) {

resources/lib/UnitySQL.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function addNotice(
202202
}
203203

204204
public function editNotice(
205-
int $id,
205+
string $id,
206206
string $title,
207207
string $date,
208208
string $content,
@@ -219,7 +219,7 @@ public function editNotice(
219219
$stmt->execute();
220220
}
221221

222-
public function deleteNotice(int $id): void
222+
public function deleteNotice(string $id): void
223223
{
224224
$stmt = $this->conn->prepare(
225225
"DELETE FROM " . self::TABLE_NOTICES . " WHERE id=:id",
@@ -229,7 +229,7 @@ public function deleteNotice(int $id): void
229229
$stmt->execute();
230230
}
231231

232-
public function getNotice(int $id): array
232+
public function getNotice(string $id): array
233233
{
234234
$stmt = $this->conn->prepare(
235235
"SELECT * FROM " . self::TABLE_NOTICES . " WHERE id=:id",
@@ -259,7 +259,7 @@ public function getPages(): array
259259
return $stmt->fetchAll();
260260
}
261261

262-
public function getPage(int $id): array
262+
public function getPage(string $id): array
263263
{
264264
$stmt = $this->conn->prepare(
265265
"SELECT * FROM " . self::TABLE_PAGES . " WHERE page=:id",
@@ -272,7 +272,7 @@ public function getPage(int $id): array
272272
}
273273

274274
public function editPage(
275-
int $id,
275+
string $id,
276276
string $content,
277277
UnityUser $operator,
278278
): void {

resources/lib/UnityUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function init(
6161
string $firstname,
6262
string $lastname,
6363
string $email,
64-
UnityOrg $org,
64+
string $org,
6565
bool $send_mail = true,
6666
) {
6767
$ldapGroupEntry = $this->getGroupEntry();

0 commit comments

Comments
 (0)