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:
Julien Fastré 2025-04-08 13:40:11 +02:00
parent 6f1a26742d
commit 3a904e8ea1
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

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