Skip to content

Commit 0c69279

Browse files
committed
Fix style & PHPStan
1 parent 79c78ad commit 0c69279

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

app/src/Documentation/DocumentationRepository.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,12 @@ protected function getCacheKey(string $type, string $identifier): string
345345
/**
346346
* Execute a caching operation if enabled, otherwise compute directly.
347347
*
348-
* @param string $type Cache entry type (tree, page, etc.)
349-
* @param string $identifier Cache identifier
350-
* @param Closure $callback Value generator when cache miss or disabled
348+
* @template T
349+
* @param string $type Cache entry type (tree, page, etc.)
350+
* @param string $identifier Cache identifier
351+
* @param Closure():T $callback Value generator when cache miss or disabled
352+
*
353+
* @return T
351354
*/
352355
protected function remember(string $type, string $identifier, Closure $callback): mixed
353356
{

app/tests/Twig/VersionedPathExtensionTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* UserFrosting Learn (http://www.userfrosting.com)
7+
*
8+
* @link https://github.com/userfrosting/Learn
9+
* @copyright Copyright (c) 2025 Alexander Weissman & Louis Charette
10+
* @license https://github.com/userfrosting/Learn/blob/main/LICENSE.md (MIT License)
11+
*/
12+
513
namespace UserFrosting\Tests\Learn\Twig;
614

715
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)