Fix method return type from closure to callable

Updated the return type of the `getLabels` method to `callable` for better type accuracy. This aligns with PHP standards and improves code clarity and maintainability.
This commit is contained in:
2025-04-08 13:40:11 +02:00
parent 6f1a26742d
commit 3a904e8ea1

View File

@@ -54,7 +54,7 @@ final readonly class UserWorkingOnCourseAggregator implements AggregatorInterfac
return [];
}
public function getLabels($key, array $values, $data): closure
public function getLabels($key, array $values, $data): callable
{
return function (int|string|null $userId) {
if (null === $userId || '' === $userId) {