Skip to content

Commit 3699c47

Browse files
committed
refactor: add return types
1 parent 8827f4e commit 3699c47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Cache/FactoriesCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function save(string $component): void
4040
$this->cache->save($this->getCacheKey($component), $data, 3600 * 24);
4141
}
4242

43-
private function getCacheKey(string $component)
43+
private function getCacheKey(string $component): string
4444
{
4545
return 'FactoriesCache_' . $component;
4646
}

system/Config/Factories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public static function getComponentInstances(string $component): array
353353
*
354354
* @internal For caching only
355355
*/
356-
public static function setComponentInstances(string $component, array $data)
356+
public static function setComponentInstances(string $component, array $data): void
357357
{
358358
static::$basenames[$component] = $data['basenames'];
359359
self::$instances[$component] = $data['instances'];

0 commit comments

Comments
 (0)