Skip to content

Commit e6d0917

Browse files
authored
Quick fix for pr from SWAT team (#32)
1 parent b2bf560 commit e6d0917

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Model/Cache/InvalidateLogger.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ class InvalidateLogger extends \Magento\Framework\Cache\InvalidateLogger
2020
*/
2121
public function execute($invalidateInfo)
2222
{
23-
$invalidateInfo['trace'] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
23+
if (is_array($invalidateInfo)) {
24+
$invalidateInfo['trace'] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
25+
} elseif (is_string($invalidateInfo)) {
26+
$invalidateInfo = [
27+
'main' => $invalidateInfo,
28+
'trace' => debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)
29+
];
30+
}
31+
2432
parent::execute($invalidateInfo);
2533
}
2634
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-components",
33
"description": "Cloud Components Module for Magento 2.x",
44
"type": "magento2-module",
5-
"version": "1.0.4",
5+
"version": "1.0.5",
66
"require": {
77
"php": "^7.0",
88
"ext-json": "*",

0 commit comments

Comments
 (0)