Skip to content

Commit

Permalink
Merge pull request #114 from irinikp/symfony5
Browse files Browse the repository at this point in the history
Fix compatibility issues with newly supported Symfony5
  • Loading branch information
tedivm authored Apr 11, 2023
2 parents c40d78a + ff76dd3 commit 29832f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Collector/CacheDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function addTracker($tracker)
/**
* {@inheritDoc}
*/
public function collect(Request $request, Response $response, \Exception $exception = null)
public function collect(Request $request, Response $response, \Throwable $exception = null)
{
$info = array('calls' => 0, 'hits' => 0);
foreach ($this->trackers as $tracker) {
Expand Down
8 changes: 4 additions & 4 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('stash');
$treeBuilder = new TreeBuilder('stash');
$rootNode = $treeBuilder->getRootNode();

$rootNode
->beforeNormalization()
Expand Down Expand Up @@ -102,8 +102,8 @@ public function getCachesNode()
{
$drivers = array_keys(DriverList::getAvailableDrivers());

$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('caches');
$treeBuilder = new TreeBuilder('caches');
$node = $treeBuilder->getRootNode();

$childNode = $node
->fixXmlConfig('handler')
Expand Down

0 comments on commit 29832f8

Please sign in to comment.