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/Courseware/Unit.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/Courseware/Unit.php')
| -rw-r--r-- | lib/models/Courseware/Unit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/Courseware/Unit.php b/lib/models/Courseware/Unit.php index af7318d..28447d0 100644 --- a/lib/models/Courseware/Unit.php +++ b/lib/models/Courseware/Unit.php @@ -206,7 +206,7 @@ class Unit extends \SimpleORMap implements \PrivacyObject, \FeedbackRange User $user, string $rangeId, string $rangeType, - array $modified = null, + ?array $modified = null, bool $duplicate = false ): Unit { $sourceUnitElement = $this->structural_element; @@ -364,7 +364,7 @@ class Unit extends \SimpleORMap implements \PrivacyObject, \FeedbackRange return 'course/courseware/' . '?cid=' . $this->range_id; } - public function isRangeAccessible(string $user_id = null): bool + public function isRangeAccessible(?string $user_id = null): bool { $user = \User::find($user_id); if ($user) { |
