Skip to content

Commit dbbc60e

Browse files
committed
Added CacheInterface stub
1 parent 2e25964 commit dbbc60e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ parameters:
5151
- stubs/Symfony/Component/Validator/Constraint.stub
5252
- stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub
5353
- stubs/Symfony/Component/Validator/ConstraintViolationListInterface.stub
54+
- stubs/Symfony/Contracts/Cache/CacheInterface.stub
5455
- stubs/Twig/Node/Node.stub
5556

5657
parametersSchema:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Symfony\Contracts\Cache;
4+
5+
class CacheInterface
6+
{
7+
/**
8+
* @template T
9+
*
10+
* @param callable:T $callback
11+
* @return T
12+
*/
13+
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null);
14+
}

0 commit comments

Comments
 (0)