Skip to content

Commit

Permalink
chore: better phpdoc for cache items (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Aug 10, 2022
1 parent 45a22aa commit deab935
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cache/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

/**
* A cache item.
*
* This class will be used by MemoryCacheItemPool and SysVCacheItemPool
* on PHP 7.4 and below. It is compatible with psr/cache 1.0 and 2.0 (PSR-6).
* @see TypedItem for compatiblity with psr/cache 3.0.
*/
final class Item implements CacheItemInterface
{
Expand Down
4 changes: 4 additions & 0 deletions src/Cache/TypedItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/**
* A cache item.
*
* This class will be used by MemoryCacheItemPool and SysVCacheItemPool
* on PHP 8.0 and above. It is compatible with psr/cache 3.0 (PSR-6).
* @see Item for compatiblity with previous versions of PHP.
*/
final class TypedItem implements CacheItemInterface
{
Expand Down

0 comments on commit deab935

Please sign in to comment.