Skip to content

Commit

Permalink
Added return type ?array to UserDataProviderInterface::data() method
Browse files Browse the repository at this point in the history
The change should make cached data smaller since a lot of data providers
don't need to provide any user data, but they were still cached as an
empty array into the user data cache (Redis).

remp/crm#2460
  • Loading branch information
rootpd committed May 26, 2022
1 parent f39261f commit c27772a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/User/AppleAppstoreUserDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public static function identifier(): string
return 'apple_appstore';
}

public function data($userId)
public function data($userId): ?array
{
return [];
return null;
}

public function download($userId)
Expand Down

0 comments on commit c27772a

Please sign in to comment.