We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747e298 commit 256ce7fCopy full SHA for 256ce7f
src/Symfony/Component/Cache/Traits/ContractsTrait.php
@@ -42,7 +42,7 @@ trait ContractsTrait
42
public function setCallbackWrapper(?callable $callbackWrapper): callable
43
{
44
if (!isset($this->callbackWrapper)) {
45
- $this->callbackWrapper = \Closure::fromCallable([LockRegistry::class, 'compute']);
+ $this->callbackWrapper = [LockRegistry::class, 'compute'];
46
47
if (\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
48
$this->setCallbackWrapper(null);
0 commit comments