Skip to content

Commit

Permalink
fix types in tests fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
EriBloo committed Oct 15, 2024
1 parent 9eafc5e commit 3c86e00
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/Fixtures/BasicCacheObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

/**
* @implements CacheObject<string>
*
* @method static self make()
*/
final readonly class BasicCacheObject implements CacheObject
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/EncryptedCacheObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* @implements CacheObject<string>
*
* @method static self make()
*/
final readonly class EncryptedCacheObject implements CacheObject
{
Expand Down
5 changes: 3 additions & 2 deletions tests/Fixtures/GuardCacheObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
use Closure;

/**
* @template ObjectWithTime
*
* @implements CacheObject<ObjectWithTime>
*
* @method static self make(Closure|null $onSaveGuard, Closure|null $onLoadGuard)
*/
final class GuardCacheObject implements CacheObject
{
/** @use CacheObjectActions<ObjectWithTime> */
use CacheObjectActions;

public function __construct(
Expand Down
2 changes: 2 additions & 0 deletions tests/Fixtures/HashedCacheObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* @implements CacheObject<string>
*
* @method static self make()
*/
final readonly class HashedCacheObject implements CacheObject
{
Expand Down

0 comments on commit 3c86e00

Please sign in to comment.