aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/SimpleCollection.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-13 08:39:22 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-01-13 08:39:22 +0100
commitcb4bdf265fe84443f6000e4af6e132f5aa566e3f (patch)
tree659d81c24abb6888ddb16220bf570993c6469a66 /lib/classes/SimpleCollection.php
parent246fe2c51046331af9c7509c201c937b2e433108 (diff)
use rector to resolve implicitely nullable parameter declarations, fixes #5463
Closes #5463 Merge request studip/studip!4097
Diffstat (limited to 'lib/classes/SimpleCollection.php')
-rw-r--r--lib/classes/SimpleCollection.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/SimpleCollection.php b/lib/classes/SimpleCollection.php
index d44c042..a993a7c 100644
--- a/lib/classes/SimpleCollection.php
+++ b/lib/classes/SimpleCollection.php
@@ -444,7 +444,7 @@ class SimpleCollection extends StudipArrayObject
* @param ?integer $limit limit number of found records
* @return SimpleCollection<T> containing filtered elements
*/
- public function filter(callable $func = null, $limit = null)
+ public function filter(?callable $func = null, $limit = null)
{
$results = [];
$found = 0;
@@ -529,7 +529,7 @@ class SimpleCollection extends StudipArrayObject
* @param ?callable $group_func closure to aggregate grouped entries
* @return array assoc array
*/
- public function toGroupedArray($group_by = 'id', $only_these_fields = null, callable $group_func = null)
+ public function toGroupedArray($group_by = 'id', $only_these_fields = null, ?callable $group_func = null)
{
$result = [];
if (is_string($only_these_fields)) {