diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-13 08:39:22 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-01-13 08:39:22 +0100 |
| commit | cb4bdf265fe84443f6000e4af6e132f5aa566e3f (patch) | |
| tree | 659d81c24abb6888ddb16220bf570993c6469a66 /lib/models/Course.php | |
| parent | 246fe2c51046331af9c7509c201c937b2e433108 (diff) | |
use rector to resolve implicitely nullable parameter declarations, fixes #5463
Closes #5463
Merge request studip/studip!4097
Diffstat (limited to 'lib/models/Course.php')
| -rw-r--r-- | lib/models/Course.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/Course.php b/lib/models/Course.php index 6d53399..831fe07 100644 --- a/lib/models/Course.php +++ b/lib/models/Course.php @@ -2412,7 +2412,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe return $this->Seminar_id; } - public function isRangeAccessible(string $user_id = null): bool + public function isRangeAccessible(?string $user_id = null): bool { $user_id = $user_id ?? $GLOBALS['user']->id; return $GLOBALS['perm']->have_studip_perm('autor', $this->Seminar_id, $user_id); @@ -2572,7 +2572,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe /** * @inheritDoc */ - public function isCalendarWritable(string $user_id = null): bool + public function isCalendarWritable(?string $user_id = null): bool { if ($user_id === null) { $user_id = User::findCurrent()->id; |
