Skip to content

Commit 4340b29

Browse files
committed
handle deprecation of ConfigCache::__toString()
1 parent 0925e01 commit 4340b29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ public function getAllowedMethods()
4848
$this->warmUp(null);
4949
}
5050

51-
return require $this->cache;
51+
$path = method_exists($this->cache, 'getPath') ? $this->cache->getPath() : $this->cache;
52+
53+
return require $path;
5254
}
5355

5456
/**

0 commit comments

Comments
 (0)